[PATCH] confine duplicate Auth log entry to LOGDEBUG

[email protected] (Matt Simerson)
Newsgroups perl.qpsmtpd
Message-ID <[email protected]>
confine duplicate Auth log entry to LOGDEBUG

---
lib/Qpsmtpd/Auth.pm |    4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/Qpsmtpd/Auth.pm b/lib/Qpsmtpd/Auth.pm
index 422c3f4..a6f0977 100644
--- a/lib/Qpsmtpd/Auth.pm
+++ b/lib/Qpsmtpd/Auth.pm
@@ -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;
    }
}
-- 
1.7.9.6
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.