diff options
-rw-r--r-- | api/post.go | 1 | ||||
-rw-r--r-- | utils/mail.go | 1 |
2 files changed, 2 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) } diff --git a/utils/mail.go b/utils/mail.go index 07a79eeb2..ece4105a6 100644 --- a/utils/mail.go +++ b/utils/mail.go @@ -98,6 +98,7 @@ func SendMail(to, subject, body string) *model.AppError { } func SendMailUsingConfig(to, subject, body string, config *model.Config) *model.AppError { + l4g.Debug("sending mail to " + to + " with subject of '" + subject + "'") if !config.EmailSettings.SendEmailNotifications || len(config.EmailSettings.SMTPServer) == 0 { return nil |