Fixed debug message for push notifications (#6536)

Этот коммит содержится в:
Harrison Healey
2017-06-01 17:20:34 -04:00
коммит произвёл Joram Wilander
родитель b46320a089
Коммит 3b74effacd
2 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@@ -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 { for _, session := range sessions {
tmpMessage := *model.PushNotificationFromJson(strings.NewReader(msg.ToJson())) tmpMessage := *model.PushNotificationFromJson(strings.NewReader(msg.ToJson()))
tmpMessage.SetDeviceIdAndPlatform(session.DeviceId) 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) go sendToPushProxy(tmpMessage, session)
if einterfaces.GetMetricsInterface() != nil { if einterfaces.GetMetricsInterface() != nil {

Просмотреть файл

@@ -1635,10 +1635,6 @@
"id": "api.post.send_notifications_and_forget.push_non_mention", "id": "api.post.send_notifications_and_forget.push_non_mention",
"translation": " posted in " "translation": " posted in "
}, },
{
"id": "api.post.send_notifications_and_forget.push_notification.debug",
"translation": "Sending push notification to %v with msg of '%v'"
},
{ {
"id": "api.post.send_notifications_and_forget.push_notification.error", "id": "api.post.send_notifications_and_forget.push_notification.error",
"translation": "Failed to send push device_id={{.DeviceId}}, err={{.Error}}" "translation": "Failed to send push device_id={{.DeviceId}}, err={{.Error}}"