Bugs item #3086890, was opened at 2010-10-13 22:18
Message generated for change (Comment added) made by maharaja
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=937964&aid=3086890&group_id=191583
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Johan Meiring (jmeiring)
Assigned to: Nobody/Anonymous (nobody)
Summary: vacation.pl does not log to mail facility when using syslog
Initial Comment:
vacation.pl does not seem to use the 'mail' facility when using syslog.
It seems related to the word "Facility" starting with a capital F.
The following patch fixes it:
mailhost:/var/spool/vacation# diff -u vacation.pl.orig vacation.pl
--- vacation.pl.orig 2010-10-13 22:12:03.000000000 +0200
+++ vacation.pl 2010-10-13 22:14:32.000000000 +0200
@@ -214,7 +214,7 @@
if($syslog == 1) {
my $syslog_appender = Log::Log4perl::Appender->new(
'Log::Dispatch::Syslog',
- Facility => 'mail',
+ facility => 'mail',
);
$logger->add_appender($syslog_appender);
}
----------------------------------------------------------------------
Comment By: maharaja (maharaja)
Date: 2011-06-20 14:32
Message:
i can confirm this on debian 6.0 using liblog-log4perl-perl 1.29-1
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=937964&aid=3086890&group_id=191583
|