Skip to content

Commit

Permalink
confine duplicate Auth log entry to LOGDEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson authored and rspier committed May 6, 2012
1 parent 0a49ea0 commit 983dc82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Qpsmtpd/Auth.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 983dc82

Please sign in to comment.