mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
PHRAS-1276 Do not try to read log path until necessary
This commit is contained in:
@@ -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'],
|
||||
|
Reference in New Issue
Block a user