mlog standardisation for app/import.go (#12741)
* mlog standardisation for app/import.go * using the corrent mlog.Field type for the error
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
66c66eef0d
Коммит
c7e2689926
@@ -6,7 +6,6 @@ package app
|
|||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -19,7 +18,7 @@ import (
|
|||||||
|
|
||||||
func stopOnError(err LineImportWorkerError) bool {
|
func stopOnError(err LineImportWorkerError) bool {
|
||||||
if err.Error.Id == "api.file.upload_file.large_image.app_error" {
|
if err.Error.Id == "api.file.upload_file.large_image.app_error" {
|
||||||
mlog.Warn(fmt.Sprintf("Large image import error: %s", err.Error.Error()))
|
mlog.Warn("Large image import error", mlog.Err(err.Error))
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user