[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 удалений

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

@@ -151,7 +151,7 @@ func getJobs(c *Context, w http.ResponseWriter, r *http.Request) {
for _, jobType := range model.AllJobTypes {
hasPermission, permissionRequired := c.App.SessionHasPermissionToReadJob(*c.AppContext.Session(), jobType)
if permissionRequired == nil {
mlog.Warn("The job types of a job you are trying to retrieve does not contain permissions", mlog.String("jobType", jobType))
c.Logger.Warn("The job types of a job you are trying to retrieve does not contain permissions", mlog.String("jobType", jobType))
continue
}
if hasPermission {