Don't WARN log UserNotExist errors on ExternalUserLogin failure (#16238)
Instead log these at debug - with warn logging for other errors. Fix #16235 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
b223d36195
commit
5f2ef17fdb
1 changed files with 5 additions and 1 deletions
|
@ -856,8 +856,12 @@ func UserSignIn(username, password string) (*User, error) {
|
||||||
return authUser, nil
|
return authUser, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if IsErrUserNotExist(err) {
|
||||||
|
log.Debug("Failed to login '%s' via '%s': %v", username, source.Name, err)
|
||||||
|
} else {
|
||||||
log.Warn("Failed to login '%s' via '%s': %v", username, source.Name, err)
|
log.Warn("Failed to login '%s' via '%s': %v", username, source.Name, err)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return nil, ErrUserNotExist{user.ID, user.Name, 0}
|
return nil, ErrUserNotExist{user.ID, user.Name, 0}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue