summaryrefslogtreecommitdiffstats
path: root/app/notification.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-06-01 17:20:34 -0400
committerJoram Wilander <jwawilander@gmail.com>2017-06-01 17:20:34 -0400
commit3b74effacd9308649431245f7d4142b47b4fae0f (patch)
tree85b3c01dbdfdfa3ebe02bd9d91297d93b7465215 /app/notification.go
parentb46320a08939b64b0611404233d0f9b53dd4407d (diff)
downloadchat-3b74effacd9308649431245f7d4142b47b4fae0f.tar.gz
chat-3b74effacd9308649431245f7d4142b47b4fae0f.tar.bz2
chat-3b74effacd9308649431245f7d4142b47b4fae0f.zip
Fixed debug message for push notifications (#6536)
Diffstat (limited to 'app/notification.go')
-rw-r--r--app/notification.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/notification.go b/app/notification.go
index 90a87ea35..ae04288dd 100644
--- a/app/notification.go
+++ b/app/notification.go
@@ -510,11 +510,14 @@ func sendPushNotification(post *model.Post, user *model.User, channel *model.Cha
}
}
- l4g.Debug(utils.T("api.post.send_notifications_and_forget.push_notification.debug"), msg.DeviceId, msg.Message)
+ l4g.Debug("Sending push notification for user %v with msg of '%v'", user.Id, msg.Message)
for _, session := range sessions {
tmpMessage := *model.PushNotificationFromJson(strings.NewReader(msg.ToJson()))
tmpMessage.SetDeviceIdAndPlatform(session.DeviceId)
+
+ l4g.Debug("Sending push notification to device %v for user %v with msg of '%v'", tmpMessage.DeviceId, user.Id, msg.Message)
+
go sendToPushProxy(tmpMessage, session)
if einterfaces.GetMetricsInterface() != nil {