Matt Simerson | 6 May 2012 20:17
Gravatar

[PATCH] confine SMTP.pm duplicate logging to LOGDEBUG


confine SMTP.pm duplicate logging to LOGDEBUG

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

diff --git a/lib/Qpsmtpd/SMTP.pm b/lib/Qpsmtpd/SMTP.pm
index 7c126dd..bb03011 100644
--- a/lib/Qpsmtpd/SMTP.pm
+++ b/lib/Qpsmtpd/SMTP.pm
 <at>  <at>  -313,7 +313,7  <at>  <at>  sub mail {
   return $self->respond(503, "please say hello first ...");
 }
 else {
-    $self->log(LOGINFO, "full from_parameter: $line");
+    $self->log(LOGDEBUG, "full from_parameter: $line");
   $self->run_hooks("mail_parse", $line);
 }
}
 <at>  <at>  -388,7 +388,7  <at>  <at>  sub mail_respond {
     $self->disconnect;
   }
   else { # includes OK
-      $self->log(LOGINFO, "getting mail from ".$from->format);
+      $self->log(LOGDEBUG, "getting mail from ".$from->format);
     $self->respond(250, $from->format . ", sender OK - how exciting to get mail from you!");
     $self->transaction->sender($from);
   }
--

-- 
1.7.9.6


Gmane