From 76086b39e4e3bf0aae6d09bed1dc1a02dc7c4edd Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 17 Mar 2015 22:09:33 +0100 Subject: [PATCH] Set log level just before starting the app --- vroom.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vroom.pl b/vroom.pl index 30776f5..dea7750 100755 --- a/vroom.pl +++ b/vroom.pl @@ -64,9 +64,6 @@ $config->{'daemon.backend'} ||= 'hypnotoad'; $config->{'daemon.log_level'} ||= 'warn'; $config->{'daemon.pid_file'} ||= '/tmp/vroom.pid'; -# Set log level -app->log->level($config->{'daemon.log_level'}); - # Create etherpad api client if required our $ec = undef; if ($config->{'etherpad.uri'} =~ m/https?:\/\/.*/ && $config->{'etherpad.api_key'} ne ''){ @@ -2141,6 +2138,8 @@ app->config( } ); +# Set log level +app->log->level($config->{'daemon.log_level'}); app->log->info('Starting VROOM daemon'); # And start, lets VROOM !! app->start;