vacation.pl: change syslog facility

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@721 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 15 years ago
parent 826ec62203
commit 08f37bb6ad

@ -213,7 +213,7 @@ if($test_mode == 1) {
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 @@ sub already_notified {
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) {

Loading…
Cancel
Save