ensure startup message is first

This commit is contained in:
Oliver Gorwits
2017-06-13 06:54:13 +01:00
parent ef0d326287
commit 5d4c8ade10
2 changed files with 6 additions and 2 deletions

View File

@@ -22,7 +22,9 @@ BEGIN {
use App::Netdisco;
use Dancer qw/:moose :script/;
warning sprintf "App::Netdisco %s backend", ($App::Netdisco::VERSION || 'HEAD');
BEGIN {
warning sprintf "App::Netdisco %s backend", ($App::Netdisco::VERSION || 'HEAD');
}
use App::Netdisco::Util::Backend;
use NetAddr::IP::Lite ':lower'; # to quench AF_INET6 symbol errors

View File

@@ -25,7 +25,9 @@ BEGIN {
use App::Netdisco;
use Dancer;
warning sprintf "App::Netdisco %s web", ($App::Netdisco::VERSION || 'HEAD');
BEGIN {
warning sprintf "App::Netdisco %s web", ($App::Netdisco::VERSION || 'HEAD');
}
set plack_middlewares => [
['Plack::Middleware::ReverseProxy'],