[MM-45065] Switch all api4 methods to use the new logger (#24896)

Этот коммит содержится в:
Ben Schumacher
2023-10-31 11:00:22 +01:00
коммит произвёл GitHub
родитель 3812de0dec
Коммит a4ece51391
8 изменённых файлов: 13 добавлений и 14 удалений

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

@@ -172,7 +172,7 @@ func getSystemPing(c *Context, w http.ResponseWriter, r *http.Request) {
}
if s[dbStatusKey] == model.StatusOk {
mlog.Debug("Able to write to database.")
c.Logger.Debug("Able to write to database.")
}
filestoreStatusKey := "filestore_status"
@@ -853,7 +853,7 @@ func getWarnMetricsStatus(c *Context, w http.ResponseWriter, r *http.Request) {
license := c.App.Channels().License()
if license != nil {
mlog.Debug("License is present, skip.")
c.Logger.Debug("License is present, skip.")
return
}
@@ -884,7 +884,7 @@ func sendWarnMetricAckEmail(c *Context, w http.ResponseWriter, r *http.Request)
license := c.App.Channels().License()
if license != nil {
mlog.Debug("License is present, skip.")
c.Logger.Debug("License is present, skip.")
return
}
@@ -920,13 +920,13 @@ func requestTrialLicenseAndAckWarnMetric(c *Context, w http.ResponseWriter, r *h
}
if model.BuildEnterpriseReady != "true" {
mlog.Debug("Not Enterprise Edition, skip.")
c.Logger.Debug("Not Enterprise Edition, skip.")
return
}
license := c.App.Channels().License()
if license != nil {
mlog.Debug("License is present, skip.")
c.Logger.Debug("License is present, skip.")
return
}