Always set DBIC_TRACE_PROFILE=console

This commit is contained in:
Oliver Gorwits
2014-08-08 21:37:15 +01:00
parent 0f2fadcede
commit 1f73f061f7
4 changed files with 7 additions and 3 deletions

View File

@@ -79,4 +79,7 @@ $ENV{'PERL_ANYEVENT_MAX_OUTSTANDING_DNS'}
$ENV{'PERL_ANYEVENT_HOSTS'}
= setting('dns')->{hosts_file} || '/etc/hosts';
# always set this
$ENV{DBIC_TRACE_PROFILE} = 'console';
true;

View File

@@ -18,7 +18,7 @@ the L<documentation|App::Netdisco>. Then:
git clone git://git.code.sf.net/p/netdisco/netdisco-ng netdisco-ng
cd netdisco-ng/Netdisco
DBIC_TRACE_PROFILE=console DBIC_TRACE=1 ~/bin/localenv plackup -R share,lib -p 5001 bin/netdisco-web-fg
DBIC_TRACE=1 ~/bin/localenv plackup -R share,lib -p 5001 bin/netdisco-web-fg
The above creates you a git clone (change the URL if you're a Netdisco
Developer) and runs the web server:
@@ -52,7 +52,7 @@ some of the web client callbacks.
For the daemon, it's very similar:
DBIC_TRACE_PROFILE=console DBIC_TRACE=1 ~/bin/localenv bin/netdisco-daemon-fg
DBIC_TRACE=1 ~/bin/localenv bin/netdisco-daemon-fg
Don't be alarmed by the high rate of database queries in the daemon - most of
them are communicating only with a local in-memory SQLite database.