From f18895667ddb4364721b0048fd9c80070066b970 Mon Sep 17 00:00:00 2001 From: Nikhil Ranjan Date: Tue, 10 Sep 2019 08:40:55 +0200 Subject: [PATCH] =?UTF-8?q?Converting=20to=20structured=20logging=20the=20?= =?UTF-8?q?file=20store/sqlstore/suppl=E2=80=A6=20(#12090)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store/sqlstore/supplier_reactions.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/store/sqlstore/supplier_reactions.go b/store/sqlstore/supplier_reactions.go index e607ed94c9..e3822af708 100644 --- a/store/sqlstore/supplier_reactions.go +++ b/store/sqlstore/supplier_reactions.go @@ -4,7 +4,6 @@ package sqlstore import ( - "fmt" "net/http" "github.com/mattermost/gorp" @@ -141,7 +140,7 @@ func (s *SqlReactionStore) DeleteAllWithEmojiName(emojiName string) *model.AppEr for _, reaction := range reactions { if _, err := s.GetMaster().Exec(UPDATE_POST_HAS_REACTIONS_ON_DELETE_QUERY, map[string]interface{}{"PostId": reaction.PostId, "UpdateAt": model.GetMillis()}); err != nil { - mlog.Warn(fmt.Sprintf("Unable to update Post.HasReactions while removing reactions post_id=%v, error=%v", reaction.PostId, err.Error())) + mlog.Warn("Unable to update Post.HasReactions while removing reactions", mlog.String("post_id", reaction.PostId), mlog.Err(err)) } }