SF.net SVN: postfixadmin:[721] trunk/VIRTUAL_VACATION/vacation.pl
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2009-09-26 08:17:13
|
Revision: 721 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=721&view=rev Author: GingerDog Date: 2009-09-26 08:17:03 +0000 (Sat, 26 Sep 2009) Log Message: ----------- vacation.pl: change syslog facility Modified Paths: -------------- trunk/VIRTUAL_VACATION/vacation.pl Modified: trunk/VIRTUAL_VACATION/vacation.pl =================================================================== --- trunk/VIRTUAL_VACATION/vacation.pl 2009-09-16 21:37:06 UTC (rev 720) +++ trunk/VIRTUAL_VACATION/vacation.pl 2009-09-26 08:17:03 UTC (rev 721) @@ -213,7 +213,7 @@ if($syslog == 1) { my $syslog_appender = Log::Log4perl::Appender->new( 'Log::Dispatch::Syslog', - Facility => 'user', + Facility => 'mail', ); $logger->add_appender($syslog_appender); } @@ -282,7 +282,7 @@ my @row = $stm->fetchrow_array; my $int = $row[0]; if ($int > $interval) { - $logger->debug("[Interval elapsed, sending the message]: From: $from To:$to"); + $logger->info("[Interval elapsed, sending the message]: From: $from To:$to"); $query = qq{UPDATE vacation_notification SET notified_at=NOW() WHERE on_vacation=? AND notified=?}; $stm = $dbh->prepare($query); if (!$stm) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |