PHRAS-1276 Do not try to read log path until necessary

This commit is contained in:
Thibaud Fabre
2016-10-26 13:45:23 +02:00
parent eb0177a60b
commit f776cda39d

View File

@@ -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'],