From 94eb3caa732038cb89265ac7047042520c440583 Mon Sep 17 00:00:00 2001 From: Nikhil Ranjan Date: Tue, 10 Sep 2019 14:08:29 +0200 Subject: [PATCH] Converting to structured logging the file app/command_echo.go (#12144) --- app/command_echo.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/command_echo.go b/app/command_echo.go index 2197959114..9b489bda23 100644 --- a/app/command_echo.go +++ b/app/command_echo.go @@ -4,7 +4,6 @@ package app import ( - "fmt" "strconv" "strings" "time" @@ -90,7 +89,7 @@ func (me *EchoProvider) DoCommand(a *App, args *model.CommandArgs, message strin time.Sleep(time.Duration(delay) * time.Second) if _, err := a.CreatePostMissingChannel(post, true); err != nil { - mlog.Error(fmt.Sprintf("Unable to create /echo post, err=%v", err)) + mlog.Error("Unable to create /echo post.", mlog.Err(err)) } })