From f878a463b736bdf443dd48c8d04f7f49347de95b Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Thu, 16 Mar 2023 10:44:09 -0400 Subject: [PATCH] make logs less chatty --- internal/worker/notifications.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/worker/notifications.go b/internal/worker/notifications.go index b4e3a21..a90644a 100644 --- a/internal/worker/notifications.go +++ b/internal/worker/notifications.go @@ -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 }