MM-18281 Refactor "app/server_app_adapters.go" to use structured logging (#12503)
* chore: refactor to use structured logging - remove the unsed fmt package - convert the fmt.sprintt to the structured logging * implement requested changes from iomodo * implement feedback from willfrog
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
c58c08283e
Коммит
867027117e
@@ -4,7 +4,6 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"path"
|
||||
@@ -67,7 +66,7 @@ func (s *Server) RunOldAppInitalization() error {
|
||||
}
|
||||
|
||||
if htmlTemplateWatcher, err := utils.NewHTMLTemplateWatcher("templates"); err != nil {
|
||||
mlog.Error(fmt.Sprintf("Failed to parse server templates %v", err))
|
||||
mlog.Error("Failed to parse server templates", mlog.Err(err))
|
||||
} else {
|
||||
s.FakeApp().Srv.htmlTemplateWatcher = htmlTemplateWatcher
|
||||
}
|
||||
@@ -131,7 +130,7 @@ func (s *Server) RunOldAppInitalization() error {
|
||||
appErr = backend.TestConnection()
|
||||
}
|
||||
if appErr != nil {
|
||||
mlog.Error("Problem with file storage settings: " + appErr.Error())
|
||||
mlog.Error("Problem with file storage settings", mlog.Err(appErr))
|
||||
}
|
||||
|
||||
if model.BuildEnterpriseReady == "true" {
|
||||
|
||||
Ссылка в новой задаче
Block a user