diff options
author | Gustavo De Nardin <spuk@mandriva.org> | 2008-02-20 22:10:52 +0000 |
---|---|---|
committer | Gustavo De Nardin <spuk@mandriva.org> | 2008-02-20 22:10:52 +0000 |
commit | 8c4951f21c8e60a3638a0b75ae75e59228acc17e (patch) | |
tree | 0ccacde1ed66014942f53372dd5ad2b05f2d18db /lib/Iurt/Util.pm | |
parent | 13bcc041cac054ee50a14961b1addebbea96f027 (diff) | |
download | iurt-8c4951f21c8e60a3638a0b75ae75e59228acc17e.tar iurt-8c4951f21c8e60a3638a0b75ae75e59228acc17e.tar.gz iurt-8c4951f21c8e60a3638a0b75ae75e59228acc17e.tar.bz2 iurt-8c4951f21c8e60a3638a0b75ae75e59228acc17e.tar.xz iurt-8c4951f21c8e60a3638a0b75ae75e59228acc17e.zip |
oops, reverting r237127...
Diffstat (limited to 'lib/Iurt/Util.pm')
-rw-r--r-- | lib/Iurt/Util.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Iurt/Util.pm b/lib/Iurt/Util.pm index 68f3fba..a101f76 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 @_; + $plog_level = shift @_ || 9999; $plog_color = shift @_ || 0; - $plog_level = 9999 if ($ENV{PLOG_DEBUG} || ! ($plog_level >= 0)); + $plog_level = 9999 if $ENV{PLOG_DEBUG}; $plog_color = 0 unless -t fileno $plog_file; |