Subject: | -Log isn't well documented and doesn't do what the test seems to think it does |
The docs for the -Log use-time config directive just say "Specifies log level."
The single use of -Log in the tests in t/unit_core_setup.t, does
-Log=warn,error,fatal
that doesn't do what the author probably thought it did, not does it do what the docs say.
Given the above, setup() calls setup_log('warn,error,fatal') which, with 'warn,error,fatal' in
$debug effectively does this:
if ( $debug ) {
*{"$class\::debug"} = sub { 1 };
}
So -Log is effectively a boolean, and there's almost no difference between it and -Debug.