From e48c608db0f6b79e8db44def50f0c9c5bc559b22 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sun, 24 Feb 2019 13:57:17 +0100 Subject: [PATCH] removed silent fail of logfile permission (should get fixed with #6745 ) --- src/Factory/LoggerFactory.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Factory/LoggerFactory.php b/src/Factory/LoggerFactory.php index 8eb5506093..681dc8a6c6 100644 --- a/src/Factory/LoggerFactory.php +++ b/src/Factory/LoggerFactory.php @@ -157,12 +157,6 @@ class LoggerFactory $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); $formatter = new Monolog\Formatter\LineFormatter("%datetime% %channel% [%level_name%]: %message% %context% %extra%\n");