Skip to content

Commit

Permalink
Log warning message when current user is freeze (#18937)
Browse files Browse the repository at this point in the history
Signed-off-by: stonezdj <daojunz@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
  • Loading branch information
stonezdj and wy65701436 authored Jul 18, 2023
1 parent d745ad9 commit 82ee529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/auth/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func Login(ctx context.Context, m models.AuthModel) (*models.User, error) {
user, err := authenticator.Authenticate(ctx, m)
if err != nil {
if _, ok = err.(ErrAuth); ok {
log.Debugf("Login failed, locking %s, and sleep for %v", m.Principal, frozenTime)
log.Warningf("Login failed, locking %s, and sleep for %v", m.Principal, frozenTime)
lock.Lock(m.Principal)
time.Sleep(frozenTime)
}
Expand Down

0 comments on commit 82ee529

Please sign in to comment.