fix cli override of options

This commit is contained in:
Oliver Gorwits
2014-08-08 23:22:15 +01:00
parent cb9667f58c
commit bc8f75f7f8

View File

@@ -66,9 +66,9 @@ my $CONFIG = config();
$CONFIG->{logger} = 'console';
$CONFIG->{log} = ($debug ? 'debug' : 'info');
$ENV{INFO_TRACE} = $infotrace;
$ENV{SNMP_TRACE} = $snmptrace;
$ENV{DBIC_TRACE} = $sqltrace;
$ENV{INFO_TRACE} ||= $infotrace;
$ENV{SNMP_TRACE} ||= $snmptrace;
$ENV{DBIC_TRACE} ||= $sqltrace;
# reconfigure logging to force console output
Dancer::Logger->init('console', $CONFIG);