Commit d48f2e88 authored by Michael Widenius's avatar Michael Widenius

Moved init_log() to be later to not write log entries when one uses --example

parent 438e9eca
...@@ -116,7 +116,6 @@ sub main ...@@ -116,7 +116,6 @@ sub main
print "will be disabled\nand some will be enabled.\n\n"; print "will be disabled\nand some will be enabled.\n\n";
} }
init_log() if (!defined($opt_log));
$groupids = $ARGV[1]; $groupids = $ARGV[1];
if ($opt_version) if ($opt_version)
{ {
...@@ -142,6 +141,7 @@ sub main ...@@ -142,6 +141,7 @@ sub main
!($ARGV[0] =~ m/^stop$/i) && !($ARGV[0] =~ m/^stop$/i) &&
!($ARGV[0] =~ m/^report$/i))); !($ARGV[0] =~ m/^report$/i)));
init_log() if (!defined($opt_log));
if (!$opt_no_log) if (!$opt_no_log)
{ {
w2log("$my_progname log file version $VER; run: ", w2log("$my_progname log file version $VER; run: ",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment