[svn:qpsmtpd] r685 - branches/0.3x/lib/Qpsmtpd
[email protected] Sat, 16 Dec 2006 02:01:50 -0800 (PST)
| Newsgroups | perl.cvs.qpsmtpd |
|---|---|
| Message-ID | <[email protected]> |
Author: hjp
Date: Sat Dec 16 02:01:50 2006
New Revision: 685
Modified:
branches/0.3x/lib/Qpsmtpd/TcpServer.pm
Log:
Increased log level of SMTP commands and responses to LOGINFO.
These may be useful during normal operations.
Modified: branches/0.3x/lib/Qpsmtpd/TcpServer.pm
==============================================================================
--- branches/0.3x/lib/Qpsmtpd/TcpServer.pm (original)
+++ branches/0.3x/lib/Qpsmtpd/TcpServer.pm Sat Dec 16 02:01:50 2006
@@ -75,7 +75,7 @@
while (<STDIN>) {
alarm 0;
$_ =~ s/\r?\n$//s; # advanced chomp
- $self->log(LOGDEBUG, "dispatching $_");
+ $self->log(LOGINFO, "dispatching $_");
$self->connection->notes('original_string', $_);
defined $self->dispatch(split / +/, $_, 2)
or $self->respond(502, "command unrecognized: '$_'");
@@ -89,7 +89,7 @@
my $buf = '';
while (my $msg = shift @messages) {
my $line = $code . (@messages?"-":" ").$msg;
- $self->log(LOGDEBUG, $line);
+ $self->log(LOGINFO, $line);
$buf .= "$line\r\n";
}
print $buf or ($self->log(LOGERROR, "Could not print [$buf]: $!"), return 0);
@@ -98,7 +98,7 @@
sub disconnect {
my $self = shift;
- $self->log(LOGDEBUG,"click, disconnecting");
+ $self->log(LOGINFO,"click, disconnecting");
$self->SUPER::disconnect(@_);
$self->run_hooks("post-connection");
exit;