Subject: | LOG_EMERG problem |
Date: | Fri, 11 Aug 2006 16:52:01 -0700 |
To: | bug-sys-syslog [...] rt.cpan.org |
From: | Dylan Martin <dmartin [...] sccd.ctc.edu> |
Hi, I ran accross what appears to be a bug in Sys::Syslog. You can
see the conversation on Perlmonks at
http://www.perlmonks.org/?node_id=566971
Essentially, LOG_EMERG equals zero on Linux (and probably elsewhere),
and Sys::Syslog croaks if the log level is zero. Here's the croaky
bit:
if ($_ eq 'kern' || $num <= 0) {
croak "syslog: invalid level/facility: $_"
}
Let me know if I can help.
--
Dylan Martin
Seattl WA