removed silent fail of logfile permission (should get fixed with #6745 )

2022.09-rc
Philipp Holzer 2019-02-24 13:57:17 +01:00
rodzic 5fc42a744e
commit e48c608db0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 517BE60E2CE5C8A5
1 zmienionych plików z 0 dodań i 6 usunięć

Wyświetl plik

@ -157,12 +157,6 @@ class LoggerFactory
$loglevel = LogLevel::NOTICE; $loglevel = LogLevel::NOTICE;
} }
// if the stream is a file and it isn't writeable, add a null handler and return
if (is_file($stream) && !is_writable($stream)) {
$logger->pushHandler(new Monolog\Handler\NullHandler());
return;
}
$fileHandler = new Monolog\Handler\StreamHandler($stream, $loglevel); $fileHandler = new Monolog\Handler\StreamHandler($stream, $loglevel);
$formatter = new Monolog\Formatter\LineFormatter("%datetime% %channel% [%level_name%]: %message% %context% %extra%\n"); $formatter = new Monolog\Formatter\LineFormatter("%datetime% %channel% [%level_name%]: %message% %context% %extra%\n");