* Refactor "app/notification_email.go" to use structured logging #12726 * Update notification_email.go * Update notification_email.go * Update notification_email.go * add back fmt as fmt.Sprintf calls are used for Year/Day/Minute * Update notification_email.go * Update notification_email.go * Update notification_email.go
Этот коммит содержится в:
коммит произвёл
Lev
родитель
7600d9c169
Коммит
d9a154fc70
@@ -100,7 +100,7 @@ func (a *App) sendNotificationEmail(notification *postNotification, user *model.
|
||||
|
||||
a.Srv.Go(func() {
|
||||
if err := a.SendNotificationMail(user.Email, html.UnescapeString(subjectText), bodyText); err != nil {
|
||||
mlog.Error("Error while sending the email", mlog.String("email", user.Email), mlog.Err(err))
|
||||
mlog.Error("Error while sending the email", mlog.String("user_email", user.Email), mlog.Err(err))
|
||||
}
|
||||
})
|
||||
|
||||
@@ -285,7 +285,7 @@ func getFormattedPostTime(user *model.User, post *model.Post, useMilitaryTime bo
|
||||
func (a *App) generateHyperlinkForChannels(postMessage, teamName, teamURL string) string {
|
||||
team, err := a.GetTeamByName(teamName)
|
||||
if err != nil {
|
||||
mlog.Error("Encountered error while looking up team by name", mlog.String("Team Name", teamName), mlog.Err(err))
|
||||
mlog.Error("Encountered error while looking up team by name", mlog.String("team_name", teamName), mlog.Err(err))
|
||||
return postMessage
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user