Skip to content

Commit 1016c30

Browse files
authored
Added AckID to log message (#84)
Signed-off-by: Paul Rothrock <[email protected]>
1 parent aabb052 commit 1016c30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/android_notification_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (me *AndroidNotificationServer) SendNotification(msg *PushNotification) Pus
8282
return NewErrorPushResponse(err.Error())
8383
}
8484

85-
me.logger.Infof("Sending android push notification for device=%v and type=%v", me.AndroidPushSettings.Type, msg.Type)
85+
me.logger.Infof("Sending android push notification for device=%v type=%v ackId=%v", me.AndroidPushSettings.Type, msg.Type, msg.AckID)
8686

8787
start := time.Now()
8888
resp, err := sender.SendWithRetry(fcmMsg, 2)

server/apple_notification_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func (me *AppleNotificationServer) SendNotification(msg *PushNotification) PushR
167167
}
168168

169169
if me.AppleClient != nil {
170-
me.logger.Infof("Sending apple push notification for device=%v and type=%v", me.ApplePushSettings.Type, msg.Type)
170+
me.logger.Infof("Sending apple push notification for device=%v type=%v ackId=%v", me.ApplePushSettings.Type, msg.Type, msg.AckID)
171171
start := time.Now()
172172
res, err := me.AppleClient.Push(notification)
173173
if me.metrics != nil {

0 commit comments

Comments
 (0)