Skip to content

Commit

Permalink
Add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Feb 24, 2024
1 parent 10ad4d3 commit 3be0f5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/message/v1/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (s *Service) Subscribe(req *proto.SubscribeRequest, stream proto.MessageApi
}()
} else {
// channel got closed; likely due to backpressure of the sending channel.
log.Debug("stream closed due to backpressure")
log.Info("stream closed due to backpressure")
exit = true
}
case <-stream.Context().Done():
Expand Down Expand Up @@ -326,7 +326,7 @@ func (s *Service) Subscribe2(stream proto.MessageApi_Subscribe2Server) error {

func (s *Service) SubscribeAll(req *proto.SubscribeAllRequest, stream proto.MessageApi_SubscribeAllServer) error {
log := s.log.Named("subscribeAll")
log.Debug("started")
log.Info("started")
defer log.Debug("stopped")

// Subscribe to all nats subjects via wildcard
Expand Down

0 comments on commit 3be0f5e

Please sign in to comment.