From f776cda39d0efaa08349e64a270280d520a5d058 Mon Sep 17 00:00:00 2001 From: Thibaud Fabre Date: Wed, 26 Oct 2016 13:45:23 +0200 Subject: [PATCH] PHRAS-1276 Do not try to read log path until necessary --- lib/Alchemy/Phrasea/Application.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Alchemy/Phrasea/Application.php b/lib/Alchemy/Phrasea/Application.php index 0cf2027b5e..dea7992be8 100644 --- a/lib/Alchemy/Phrasea/Application.php +++ b/lib/Alchemy/Phrasea/Application.php @@ -678,10 +678,9 @@ class Application extends SilexApplication private function setupMonolog() { $this['monolog.name'] = 'phraseanet'; - $this['monolog.logfile'] = $this['log.path'] . '/app_error.log'; $this['monolog.handler'] = $this->share(function (Application $app) { return new RotatingFileHandler( - $app['monolog.logfile'], + $app['log.path'] . '/app_error.log', 10, Logger::ERROR, $app['monolog.bubble'],