Skip Menu |

This queue is for tickets about the Net-Daemon CPAN distribution.

Report information
The Basics
Id: 7814
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Net-Daemon

People
Owner: MNOONING [...] cpan.org
Requestors: bug [...] wingenbach.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: logging to syslog broken
The Log subroutine attempts to log to syslog. However, it fails with the error: Undefined subroutine &Sys::Syslog::syslog called at /usr/lib/perl5/site_perl/5.8.3/Net/Daemon/Log.pm line 118. By preceding the call with the following code, the error is eliminated: eval { require Sys::Syslog }; if ($@) { die "Cannot open Syslog: $@"; } -- John Wingenbach
This bug is three years old and no one has reported it since. The patch you show is done in sub OpenLog, which is invoked by sub Log to obtain $logfile. The third else clause of the 'if $logfile' is the line I think you are referring to. The current Net-Daemon revision is now up to 0.41. Hopefully this bug is resolved. If not, hopefully the CPAN testers will flag it. If that happens I will look into it again.