summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-01-05 20:33:31 -0600
committer=Corey Hulen <corey@hulen.com>2016-01-05 20:33:31 -0600
commit7f8cb30bd36a88307148612f4b27d6a28f954b6b (patch)
tree6cb9ed7eee47552c1f6461a193072ed5bc984b0b /api
parent482158d2bbc59be80e916bd2197f0fc609d9bc73 (diff)
downloadchat-7f8cb30bd36a88307148612f4b27d6a28f954b6b.tar.gz
chat-7f8cb30bd36a88307148612f4b27d6a28f954b6b.tar.bz2
chat-7f8cb30bd36a88307148612f4b27d6a28f954b6b.zip
PLT-1607 adding more debugging info for email and push notifications
Diffstat (limited to 'api')
-rw-r--r--api/post.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/post.go b/api/post.go
index 6c1d4bbd1..958479427 100644
--- a/api/post.go
+++ b/api/post.go
@@ -650,6 +650,7 @@ func sendNotificationsAndForget(c *Context, post *model.Post, team *model.Team,
httpClient := http.Client{}
request, _ := http.NewRequest("POST", *utils.Cfg.EmailSettings.PushNotificationServer+"/api/v1/send_push", strings.NewReader(msg.ToJson()))
+ l4g.Debug("Sending push notification to " + msg.DeviceId + " with msg of '" + msg.Message + "'")
if _, err := httpClient.Do(request); err != nil {
l4g.Error("Failed to send push notificationid=%v, err=%v", id, err)
}