diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Smokeping.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index 3f76a7e..2588a04 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -2708,7 +2708,10 @@ sub daemonize_me ($) { eval { syslog($syslog_priority, 'Starting syslog logging'); }; - die("can't log to syslog: $@") if $@; + if ($@) { + print "Warning: can't connect to syslog. Messages will be lost.\n"; + print "Error message was: $@"; + } } sub do_syslog ($){ |