Skip Menu |

This queue is for tickets about the Sys-Syslog CPAN distribution.

Report information
The Basics
Id: 19259
Status: resolved
Priority: 0/
Queue: Sys-Syslog

People
Owner: Nobody in particular
Requestors: shimon.bollinger [...] kayote.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.13
Fixed in: 0.14



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
Subject: Re: [rt.cpan.org #19259] Level 7 (fatal) Syslog message is incompatible with Sys::Syslog in release 5.8.8
Date: Mon, 15 May 2006 10:58:11 -0500 (CDT)
To: Guest via RT <bug-Log-Dispatch [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Mon, 15 May 2006, Guest via RT wrote: Show quoted text
> 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: $_"; > ---
>> 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
This looks like a bug in Sys::Syslog, since EMERG _should_ be a perfectly valid log level. -dave /*=================================================== VegGuide.Org www.BookIRead.com Your guide to all that's veg. My book blog ===================================================*/
Hi, Sebastien, I moved this into the Sys::Syslog queue because AFAICT from the bug report the bug is in Sys::Syslog. It looks like it no longer likes the LOG_EMERG level.
Subject: Re: [rt.cpan.org #19259] Level 7 (fatal) Syslog message is incompatible with Sys::Syslog in release 5.8.8
Date: Sun, 21 May 2006 21:47:10 +0200
To: bug-Sys-Syslog [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Show quoted text
> Hi, Sebastien, > > I moved this into the Sys::Syslog queue because AFAICT from the bug > report the bug is in Sys::Syslog. It looks like it no longer likes the > LOG_EMERG level.
Checking the ticket history, I am not surprised of this bug because the test that was pointed was incorrect. In changed it so it was consistent, but now I think I should replace it with a test that just check that the numeric value is null or positive, thus allowing all levels and facilities. -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.