Suppress event broker not started log warning (#19593)

This commit is contained in:
Tom Proctor
2023-03-20 11:14:14 +00:00
committed by GitHub
parent 98f4d1f8c2
commit e6427b2b30
4 changed files with 26 additions and 12 deletions

View File

@@ -37,6 +37,10 @@ type GRPCEventsServer struct {
}
func (s *GRPCEventsServer) SendEvent(ctx context.Context, req *pb.SendEventRequest) (*pb.Empty, error) {
if s.impl == nil {
return &pb.Empty{}, nil
}
err := s.impl.Send(ctx, logical.EventType(req.EventType), req.Event)
if err != nil {
return nil, err