Converting to structured logging the file store/sqlstore/suppl… (#12090)

This commit is contained in:
Nikhil Ranjan
2019-09-10 08:40:55 +02:00
committed by Eli Yukelzon
parent 7ff3439513
commit f18895667d

View File

@@ -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))
}
}