1
0
Fork 0

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

This commit is contained in:
Philipp Holzer 2019-02-24 13:57:17 +01:00
parent 5fc42a744e
commit e48c608db0
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View file

@ -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");