make logs less chatty

This commit is contained in:
Andre Medeiros 2023-03-16 10:44:09 -04:00
parent 74a87fce34
commit f878a463b7

View file

@ -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
}