From deae785d9033b505006e18f236656f1457ba4ac9 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Thu, 27 Oct 2022 12:27:19 -0400 Subject: [PATCH] add more to logging in beta --- internal/worker/live_activities.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/worker/live_activities.go b/internal/worker/live_activities.go index 40b13b9..f037987 100644 --- a/internal/worker/live_activities.go +++ b/internal/worker/live_activities.go @@ -304,6 +304,7 @@ func (lac *liveActivitiesConsumer) Consume(delivery rmq.Delivery) { lac.logger.Error("failed to send notification", zap.Error(err), zap.String("live_activity#apns_token", at), + zap.Bool("live_activity#sandbox", la.Sandbox), zap.String("notification#type", ev), ) @@ -312,6 +313,7 @@ func (lac *liveActivitiesConsumer) Consume(delivery rmq.Delivery) { _ = lac.statsd.Incr("apns.live_activities.errors", []string{}, 1) lac.logger.Error("notification not sent", zap.String("live_activity#apns_token", at), + zap.Bool("live_activity#sandbox", la.Sandbox), zap.String("notification#type", ev), zap.Int("response#status", res.StatusCode), zap.String("response#reason", res.Reason), @@ -322,6 +324,7 @@ func (lac *liveActivitiesConsumer) Consume(delivery rmq.Delivery) { _ = lac.statsd.Incr("apns.notification.sent", []string{}, 1) lac.logger.Info("sent notification", zap.String("live_activity#apns_token", at), + zap.Bool("live_activity#sandbox", la.Sandbox), zap.String("notification#type", ev), ) }