Skip Menu |

This queue is for tickets about the Catalyst-Runtime CPAN distribution.

Report information
The Basics
Id: 44218
Status: resolved
Priority: 0/
Queue: Catalyst-Runtime

People
Owner: Nobody in particular
Requestors: TIMB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 5.80003



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.
This is fixed in trunk, soon to be 5.80003 and significantly better test coverage has been added. Cheers t0m