From bf847ba184623d9518280dba4056a0c6ac770633 Mon Sep 17 00:00:00 2001 From: Hector Date: Wed, 11 Sep 2019 13:33:07 +0200 Subject: [PATCH] =?UTF-8?q?MM-18290=20Using=20structured=20logging=20in=20?= =?UTF-8?q?file=20"security=5Fupdate=5Fche=E2=80=A6=20(#12123)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Refactor to use structured logging * Properly formatted with gofmt --- app/security_update_check.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/security_update_check.go b/app/security_update_check.go index 2e3a1b2a6d..e144e89277 100644 --- a/app/security_update_check.go +++ b/app/security_update_check.go @@ -4,7 +4,6 @@ package app import ( - "fmt" "io/ioutil" "net/http" "net/url" @@ -114,7 +113,7 @@ func (s *Server) DoSecurityUpdateCheck() { } for _, user := range users { - mlog.Info(fmt.Sprintf("Sending security bulletin for %v to %v", bulletin.Id, user.Email)) + mlog.Info("Sending security bulletin", mlog.String("bulletin_id", bulletin.Id), mlog.String("user_email", user.Email)) license := s.License() mailservice.SendMailUsingConfig(user.Email, utils.T("mattermost.bulletin.subject"), string(body), s.Config(), license != nil && *license.Features.Compliance) }