aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Util.pm
diff options
context:
space:
mode:
authorGustavo De Nardin <spuk@mandriva.org>2008-02-20 22:06:30 +0000
committerGustavo De Nardin <spuk@mandriva.org>2008-02-20 22:06:30 +0000
commit13bcc041cac054ee50a14961b1addebbea96f027 (patch)
treed5a3b6cb44d23935f8dcd8b7a52de10c3f80e83a /lib/Iurt/Util.pm
parentb29b116f7d3f32a14257a4a55169d8ce11d71267 (diff)
downloadiurt-13bcc041cac054ee50a14961b1addebbea96f027.tar
iurt-13bcc041cac054ee50a14961b1addebbea96f027.tar.gz
iurt-13bcc041cac054ee50a14961b1addebbea96f027.tar.bz2
iurt-13bcc041cac054ee50a14961b1addebbea96f027.tar.xz
iurt-13bcc041cac054ee50a14961b1addebbea96f027.zip
make -v 0 work instead of being equal to -v 9999
Diffstat (limited to 'lib/Iurt/Util.pm')
-rw-r--r--lib/Iurt/Util.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Iurt/Util.pm b/lib/Iurt/Util.pm
index a101f76..68f3fba 100644
--- a/lib/Iurt/Util.pm
+++ b/lib/Iurt/Util.pm
@@ -68,10 +68,10 @@ my %plog_level = (
sub plog_init {
$plog_name = shift;
$plog_file = shift;
- $plog_level = shift @_ || 9999;
+ $plog_level = shift @_;
$plog_color = shift @_ || 0;
- $plog_level = 9999 if $ENV{PLOG_DEBUG};
+ $plog_level = 9999 if ($ENV{PLOG_DEBUG} || ! ($plog_level >= 0));
$plog_color = 0 unless -t fileno $plog_file;