|
@@ -77,6 +77,9 @@ sub _app {
|
|
|
# Build the routing table
|
|
# Build the routing table
|
|
|
state( $conf, $data, %aliases );
|
|
state( $conf, $data, %aliases );
|
|
|
|
|
|
|
|
|
|
+ # Setup logging
|
|
|
|
|
+ log_init();
|
|
|
|
|
+
|
|
|
$conf //= Trog::Config::get();
|
|
$conf //= Trog::Config::get();
|
|
|
$data //= Trog::Data->new($conf);
|
|
$data //= Trog::Data->new($conf);
|
|
|
my %routes = %{ _routes($data) };
|
|
my %routes = %{ _routes($data) };
|
|
@@ -86,9 +89,6 @@ sub _app {
|
|
|
# This should eventually be pre-filled from DB.
|
|
# This should eventually be pre-filled from DB.
|
|
|
my %etags;
|
|
my %etags;
|
|
|
|
|
|
|
|
- # Setup logging
|
|
|
|
|
- log_init();
|
|
|
|
|
-
|
|
|
|
|
my $requestid = Trog::Utils::uuid();
|
|
my $requestid = Trog::Utils::uuid();
|
|
|
Trog::Log::uuid($requestid);
|
|
Trog::Log::uuid($requestid);
|
|
|
|
|
|