Skip to content

Commit

Permalink
remove unecessary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDHat committed Mar 25, 2022
1 parent a352d5d commit 7839acb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions subscriber/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ func (s *Subscriber) Consume() (<-chan *SQSMessage, <-chan error, error) {
continue
}

s.cfg.Logger.Printf("Found %d messages\n", len(msgs.Messages))
backoffCfg.Reset()
if len(msgs.Messages) > 0 {
s.cfg.Logger.Printf("Found %d messages on %v\n", len(msgs.Messages), s.cfg.SqsQueueURL)
}
// for each message, pass to output
for _, msg := range msgs.Messages {
messages <- &SQSMessage{
Expand Down

0 comments on commit 7839acb

Please sign in to comment.