Skip to content

Commit

Permalink
make logs less chatty
Browse files Browse the repository at this point in the history
  • Loading branch information
andremedeiros committed Mar 16, 2023
1 parent 74a87fc commit f878a46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/worker/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ func (nc *notificationsConsumer) Consume(delivery rmq.Delivery) {

account, err := nc.accountRepo.GetByRedditID(ctx, id)
if err != nil {
logger.Info("account not found, exiting", zap.Error(err))
if err != domain.ErrNotFound {
logger.Debug("could not fetch account", zap.Error(err))
}
return
}

Expand Down

0 comments on commit f878a46

Please sign in to comment.