confine duplicate Auth log entry to LOGDEBUG

This commit is contained in:
Matt Simerson 2012-05-04 16:25:29 -04:00 committed by Robert
parent 0a49ea07cb
commit 983dc82203

View File

@ -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;
}
}