Adding structuredLogging check and fix inconsistencies (#13370)

* Adding structuredLogging check and fix inconsistencies

* Addressing PR review comments

* Addressing PR review comments

* Addressing PR review comments

* Addressing PR review comments

* Addressing PR review comments
Этот коммит содержится в:
Jesús Espino
2019-12-16 13:57:21 +01:00
коммит произвёл GitHub
родитель fd0a3a687d
Коммит b8ef62e502
10 изменённых файлов: 43 добавлений и 21 удалений

Просмотреть файл

@@ -145,10 +145,11 @@ func (a *App) getInfoForFilename(post *model.Post, teamId, channelId, userId, ol
data, err := a.ReadFile(path)
if err != nil {
mlog.Error(
fmt.Sprintf("File not found when migrating post to use FileInfos, err=%v", err),
"File not found when migrating post to use FileInfos",
mlog.String("post_id", post.Id),
mlog.String("filename", filename),
mlog.String("path", path),
mlog.Err(err),
)
return nil
}