Subject: | Level 7 (fatal) Syslog message is incompatible with Sys::Syslog in release 5.8.8 |
Sys::Syslog changed between 5.8.6 and 5.8.8. Here's the relevant diff:
277,278c632,633
< if (/^kern$/ || $num < 0) {
< croak "syslog: invalid level/facility: $_";
---
Show quoted text
> if ($_ eq 'kern' || $num <= 0) {
> croak "syslog: invalid level/facility: $_"
Here is a stack trace of the error caused by this change.
syslog: invalid level/facility: EMERG at
/usr/local/lib/perl5/site_perl/5.8.8/Log/Dispatch/Syslog.pm line 77
at /usr/local/lib/perl5/5.8.8/i686-linux/Sys/Syslog.pm line 633
Sys::Syslog::syslog('EMERG', '%s', '( 68) [15429] 127804ms:
NOTICE tempDir /tmp/KayoteSe...') called at
/usr/local/lib/perl5/site_perl/5.8.8/Log/Dispatch/Syslog.pm line 77
Log::Dispatch::Syslog::log_message('Log::Dispatch::Syslog=HASH(0xa6f03f4)',
'log4p_level', 'FATAL', 'level', 7, 'log4p_category', 'Kayote.DataExt',
'name', 'SyslogNotice', ...) called at
/usr/local/lib/perl5/site_perl/5.8.8/Log/Dispatch/Output.pm line 41
Log::Dispatch::Output::log('undef', 'level', 7, 'name',
'SyslogNotice', 'message', '( 68) [15429] 127804ms: NOTICE
tempDir /tmp/KayoteSe...', 'log4p_category', 'Kayote.DataExt', ...)
called at /usr/local/lib/perl5/site_perl/5.8.8/Log/Log4perl/Appender.pm
line 189
Log::Log4perl::Appender::log('Log::Log4perl::Appender=HASH(0xa68bc5c)',
'HASH(0xa5741e0)', 'Kayote.DataExt', 'FATAL') called at (eval
167)[/usr/local/lib/perl5/site_perl/5.8.8/Log/Log4perl/Logger.pm:322]
line 41
Log::Log4perl::Logger::__ANON__[(eval
167)[/usr/local/lib/perl5/site_perl/5.8.8/Log/Log4perl/Logger.pm:322]:55]('Log::Log4perl::Logger=HASH(0xa574fa8)',
'tempDir /tmp/KayoteServices-DataExt-tmp does not exist') called at
/usr/local/lib/perl5/site_perl/5.8.8/Log/Log4perl/Logger.pm line 768
Log::Log4perl::Logger::__ANON__[/usr/local/lib/perl5/site_perl/5.8.8/Log/Log4perl/Logger.pm:769]('Log::Log4perl::Logger=HASH(0xa574fa8)',
'tempDir /tmp/KayoteServices-DataExt-tmp does not exist') called at
/usr/local/lib/perl5/site_perl/5.8.8/Log/Log4perl/Logger.pm line 874
Log::Log4perl::Logger::logdie('Log::Log4perl::Logger=HASH(0xa574fa8)',
'tempDir /tmp/KayoteServices-DataExt-tmp does not exist') called at
/kayote/DataExtractor/services/DataExt/../DataExt/Utils.pm line 68
DataExt::Utils::getTempDir() called at DataExt.pl line 158
-------------------------------
Perl & OS info:
This is perl, v5.8.8 built for i686-linux
Linux localhost.localdomain 2.4.21-37.ELsmp #1 SMP Wed Sep 7 13:28:55
EDT 2005 i686 i686 i386 GNU/Linux