Fix Logger exception: gracefully handle permission issue (#1954)
This commit is contained in:
parent
b858332f9f
commit
8cd369aee7
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$logger = new Logger(
|
$logger = new Logger(
|
||||||
dirname($conf->get('resource.log')),
|
is_writable($conf->get('resource.log')) ? dirname($conf->get('resource.log')) : 'php://temp',
|
||||||
!$conf->get('dev.debug') ? LogLevel::INFO : LogLevel::DEBUG,
|
!$conf->get('dev.debug') ? LogLevel::INFO : LogLevel::DEBUG,
|
||||||
['filename' => basename($conf->get('resource.log'))]
|
['filename' => basename($conf->get('resource.log'))]
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue