aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
authorMarcelo Leitner <mrl@mandriva.com>2008-02-21 17:44:42 +0000
committerMarcelo Leitner <mrl@mandriva.com>2008-02-21 17:44:42 +0000
commitf7435483f8ed7d0e54aebb491796305e977e4b6f (patch)
tree9ae55d96dd1058c4440ed6a52f1462557190d8a6 /iurt2
parentc0b731c9f7468f646480610715e2dfbd708daf28 (diff)
downloadiurt-f7435483f8ed7d0e54aebb491796305e977e4b6f.tar
iurt-f7435483f8ed7d0e54aebb491796305e977e4b6f.tar.gz
iurt-f7435483f8ed7d0e54aebb491796305e977e4b6f.tar.bz2
iurt-f7435483f8ed7d0e54aebb491796305e977e4b6f.tar.xz
iurt-f7435483f8ed7d0e54aebb491796305e977e4b6f.zip
- Honor log level switch
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt27
1 files changed, 4 insertions, 3 deletions
diff --git a/iurt2 b/iurt2
index 61842ac..4cd800d 100755
--- a/iurt2
+++ b/iurt2
@@ -353,9 +353,7 @@ $run{todo} = [];
open(my $LOG, ">&STDERR");
$run{LOG} = sub { print $LOG @_ };
-plog_init($program_name, $LOG, $run{verbose}, 1);
-#plog_init($program_name, $LOG, 7, 1); # CM: hardcoded for now, will fix ASAP
-
+plog_init($program_name, $LOG, 7, 1); # For parsing command line
# Display version information
#
@@ -373,6 +371,9 @@ foreach my $t (@$todo) {
&{$t->[0]}(@{$t->[1]}) or plog('ERR', $t->[2]);
}
+# Use the real verbose level
+plog_init($program_name, $LOG, $run{verbose}, 1);
+
$run{distro_tag} = $run{distro};
$run{distro_tag} =~ s,/,-,g;