move default env settings to Netdisco.pm

This commit is contained in:
Oliver Gorwits
2014-04-24 21:05:42 +01:00
parent b4b5cce00a
commit 349bddf609
3 changed files with 6 additions and 12 deletions

View File

@@ -59,12 +59,6 @@ $CONFIG->{log} = ($debug ? 'debug' : 'info');
# reconfigure logging to force console output
Dancer::Logger->init('console', $CONFIG);
# set max outstanding requests for AnyEvent::DNS
local $ENV{'PERL_ANYEVENT_MAX_OUTSTANDING_DNS'}
= setting('dns')->{max_outstanding} || 10;
local $ENV{'PERL_ANYEVENT_HOSTS'}
= setting('dns')->{hosts_file} || '/etc/hosts';
# for the in-memory local job queue
schema('daemon')->deploy;