confine duplicate Auth log entry to LOGDEBUG
This commit is contained in:
parent
0a49ea07cb
commit
983dc82203
@ -103,7 +103,7 @@ sub SASL {
|
||||
( defined $msg ? " - " . $msg : "" );
|
||||
$session->respond( 235, $msg );
|
||||
$session->connection->relay_client(1);
|
||||
$session->log( LOGINFO, $msg );
|
||||
$session->log( LOGDEBUG, $msg ); # already logged by $session->respond
|
||||
|
||||
$session->{_auth_user} = $user;
|
||||
$session->{_auth_mechanism} = $mechanism;
|
||||
@ -115,7 +115,7 @@ sub SASL {
|
||||
$msg = "Authentication failed for $user" .
|
||||
( defined $msg ? " - " . $msg : "" );
|
||||
$session->respond( 535, $msg );
|
||||
$session->log( LOGERROR, $msg );
|
||||
$session->log( LOGDEBUG, $msg ); # already logged by $session->respond
|
||||
return DENY;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user