summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-01-06 09:18:52 -0500
committerChristopher Speller <crspeller@gmail.com>2016-01-06 09:18:52 -0500
commit0eb145218edb37d911cc5ec135b0006f866a44b2 (patch)
tree682f089b1298ae8108071ffa9fad2e135c132ed7 /api
parentfcb87ca42ff18e5fbf562b43390f4f99607289b1 (diff)
parenta0e3823e9cbe295591aa0a0946eafa42a94a6050 (diff)
downloadchat-0eb145218edb37d911cc5ec135b0006f866a44b2.tar.gz
chat-0eb145218edb37d911cc5ec135b0006f866a44b2.tar.bz2
chat-0eb145218edb37d911cc5ec135b0006f866a44b2.zip
Merge pull request #1816 from mattermost/PLT-1607
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)
}