[MM-31359] remove duplicated error logs (#16583)
* remove duplicated error logs * reflect review comments * add context * add error details
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
727a158e9a
Коммит
40e16ba07f
@@ -213,7 +213,7 @@ func (s *Server) IsFirstUserAccount() bool {
|
||||
if cachedSessions == 0 {
|
||||
count, err := s.Store.User().Count(model.UserCountOptions{IncludeDeleted: true})
|
||||
if err != nil {
|
||||
mlog.Error("There was a error fetching if first user account", mlog.Err(err))
|
||||
mlog.Debug("There was an error fetching if first user account", mlog.Err(err))
|
||||
return false
|
||||
}
|
||||
if count <= 0 {
|
||||
@@ -299,7 +299,6 @@ func (a *App) createUser(user *model.User) (*model.User, *model.AppError) {
|
||||
|
||||
ruser, nErr := a.Srv().Store.User().Save(user)
|
||||
if nErr != nil {
|
||||
mlog.Error("Couldn't save the user", mlog.Err(nErr))
|
||||
var appErr *model.AppError
|
||||
var invErr *store.ErrInvalidInput
|
||||
switch {
|
||||
|
||||
Ссылка в новой задаче
Block a user