diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-07-20 23:09:06 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-07-20 23:09:06 +0300 |
commit | fde654836bc0f5153eeddfa7944f260e184cafe5 (patch) | |
tree | dcc35543e9fe33953ed53781a68c88fd369e5770 | |
parent | c005e942fa1f09c3966e8887dcfb595353fbe8a7 (diff) | |
download | vdradmin-am-fde654836bc0f5153eeddfa7944f260e184cafe5.tar.gz vdradmin-am-fde654836bc0f5153eeddfa7944f260e184cafe5.tar.bz2 |
Make --log 0 actually set logging level to 0.
-rw-r--r-- | HISTORY | 3 | ||||
-rwxr-xr-x | vdradmind.pl | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -4,6 +4,9 @@ E-Mail: mail AT andreas DOT vdr-developer DOT org VDR-Portal: amair ----------------------------------------------------------- +201x-xx-xx: x.x.x +- Fixed: --log 0 command line argument (Ville Skyttä). + 2011-06-03: 3.6.8 - Updated: Dutch translation (Submitted by Roel Koelewijn). - Updated: Finnish translation (Ville Skyttä). diff --git a/vdradmind.pl b/vdradmind.pl index eeb486a..cc4ee5c 100755 --- a/vdradmind.pl +++ b/vdradmind.pl @@ -3623,7 +3623,7 @@ sub Log { chomp(my $message = join("", @_)); my $my_loglevel = $CONFIG{LOGLEVEL}; - $my_loglevel = $LOGLEVEL if $LOGLEVEL; + $my_loglevel = $LOGLEVEL if defined $LOGLEVEL; if ($my_loglevel >= shift @$level) { # Always log to stderr in non-daemon mode |