Skip to content

Commit

Permalink
perf: update logger
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Oct 7, 2023
1 parent 2214c74 commit f1ef2f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/auth/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ func SSHKeyboardInteractiveAuth(ctx ssh.Context, challenger gossh.KeyboardIntera
}
// 2 steps auth must have a partial success method
if val := ctx.Value(ContextKeyPartialSuccessMethod); val == nil {
logger.Errorf("SSH conn[%s] user %s Mfa Auth failed: not found partial success method.")
logger.Errorf("SSH conn[%s] user %s Mfa Auth failed: not found partial success method.",
ctx.SessionID(), ctx.User())
return ssh.AuthFailed
}

Expand Down

0 comments on commit f1ef2f7

Please sign in to comment.