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

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

@@ -4,7 +4,6 @@
package app
import (
"fmt"
"net/http"
"github.com/mattermost/mattermost-server/v5/mlog"
@@ -19,7 +18,7 @@ func (a *App) SyncLdap() {
if ldapI := a.Ldap; ldapI != nil {
ldapI.StartSynchronizeJob(false)
} else {
mlog.Error(fmt.Sprintf("%v", model.NewAppError("SyncLdap", "ent.ldap.disabled.app_error", nil, "", http.StatusNotImplemented).Error()))
mlog.Error("Not executing ldap sync because ldap is not available")
}
}
})