This commit is contained in:
Andre Medeiros 2022-05-23 15:15:46 -04:00
parent bcce102388
commit 1fca733818
3 changed files with 3 additions and 3 deletions

View file

@ -46,7 +46,7 @@ func (a *api) testDeviceHandler(w http.ResponseWriter, r *http.Request) {
d, err := a.deviceRepo.GetByAPNSToken(ctx, tok)
if err != nil {
a.logger.Error("failed fetching device from database", zap.Error(err))
a.logger.Error("failed to fetch device from database", zap.Error(err))
a.errorResponse(w, r, 500, err)
return
}

View file

@ -31,7 +31,7 @@ func generateNotificationTester(a *api, fun notificationGenerator) func(w http.R
d, err := a.deviceRepo.GetByAPNSToken(ctx, tok)
if err != nil {
a.logger.Info("failed fetching device from database", zap.Error(err))
a.logger.Info("failed to fetch device from database", zap.Error(err))
a.errorResponse(w, r, 500, err)
return
}

View file

@ -205,7 +205,7 @@ func (sc *subredditsConsumer) Consume(delivery rmq.Delivery) {
)
if err != nil {
sc.logger.Error("failed fetchint new posts",
sc.logger.Error("failed to fetch new posts",
zap.Error(err),
zap.Int64("subreddit#id", id),
zap.String("subreddit#name", subreddit.NormalizedName()),