Re: [PATCH] confine SMTP.pm duplicate logging to LOGDEBUG

[email protected] (Robert Spier)
Newsgroups perl.qpsmtpd
Message-ID <CAAroffebK7=0YsoV+ABz1CB1ebwP7h5P9Qf5GAO7ag0gs6jqRQ@mail.gmail.com>
Applied.

On Sun, May 6, 2012 at 11:17 AM, Matt Simerson <[email protected]> wrote:

>
> 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
> @@ -313,7 +313,7 @@ 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);
>  }
> }
> @@ -388,7 +388,7 @@ 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
>
>
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.