Converting to structured logging the file app/command_echo.go (#12144)
Этот коммит содержится в:
коммит произвёл
Claudio Costa
родитель
2e76c4c0c7
Коммит
94eb3caa73
@@ -4,7 +4,6 @@
|
|||||||
package app
|
package app
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
@@ -90,7 +89,7 @@ func (me *EchoProvider) DoCommand(a *App, args *model.CommandArgs, message strin
|
|||||||
time.Sleep(time.Duration(delay) * time.Second)
|
time.Sleep(time.Duration(delay) * time.Second)
|
||||||
|
|
||||||
if _, err := a.CreatePostMissingChannel(post, true); err != nil {
|
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))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user