summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/notification.go5
-rw-r--r--i18n/en.json4
2 files changed, 4 insertions, 5 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 {
diff --git a/i18n/en.json b/i18n/en.json
index e371b493c..ec8ae741b 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -1636,10 +1636,6 @@
"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",
"translation": "Failed to send push device_id={{.DeviceId}}, err={{.Error}}"
},