From 77bb1944db42064180bb7012e9317b1cbc8c1b33 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 8 Oct 2018 14:03:34 +0200 Subject: [PATCH] Web: Setup the logger earlier in the bootstrap process Previously only ERROR got logged (to syslog only) up until setupLogger() was called. This prevented any other message level from being logged. It's now required to be able to log in the Auth singleton. It also fixes the problem that during setupSession() some warnings were never visible due to the same reason. --- library/Icinga/Application/Web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Application/Web.php b/library/Icinga/Application/Web.php index 0b3f3f8b8..bb9809479 100644 --- a/library/Icinga/Application/Web.php +++ b/library/Icinga/Application/Web.php @@ -84,6 +84,7 @@ class Web extends EmbeddedWeb ->setupLogging() ->setupErrorHandling() ->loadConfig() + ->setupLogger() ->setupRequest() ->setupSession() ->setupNotifications() @@ -97,7 +98,6 @@ class Web extends EmbeddedWeb ->setupUserBackendFactory() ->setupUser() ->setupTimezone() - ->setupLogger() ->setupInternationalization() ->setupFatalErrorHandling(); }