Skip to content

Commit

Permalink
feat(zipper): log error when authentication failed (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
woorui authored Nov 23, 2024
1 parent 40a85f6 commit a55e854
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,13 @@ func (s *Server) handleConn(conn *Connection) {
func (s *Server) authenticate(hf *frame.HandshakeFrame) (metadata.M, error) {
md, err := auth.Authenticate(s.opts.auths, hf)
if err != nil {
s.logger.Warn(
s.logger.Error(
"authentication failed",
"err", err,
"client_type", ClientType(hf.ClientType).String(),
"client_name", hf.Name,
"credential", hf.AuthName,
"auth_name", hf.AuthName,
"auth_payload", string(hf.AuthPayload),
)
return nil, err
}
Expand Down

0 comments on commit a55e854

Please sign in to comment.