From 3894b6fa412b277f72cc941f7fe06283c03bee47 Mon Sep 17 00:00:00 2001 From: Philipp Date: Mon, 13 Feb 2023 11:34:32 +0100 Subject: [PATCH] Fix logic --- src/Core/Logger/Type/StreamLogger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Logger/Type/StreamLogger.php b/src/Core/Logger/Type/StreamLogger.php index 6a90f2e120..d56f5b20ef 100644 --- a/src/Core/Logger/Type/StreamLogger.php +++ b/src/Core/Logger/Type/StreamLogger.php @@ -92,7 +92,7 @@ class StreamLogger extends AbstractLogger implements IAmAStrategy $this->fileSystem = $fileSystem; $stream = $this->logfile ?? $config->get('system', 'logfile'); - if ((@file_exists($stream) && !@is_writable($stream)) || @is_writable(basename($stream))) { + if ((@file_exists($stream) && !@is_writable($stream)) && !@is_writable(basename($stream))) { throw new LoggerArgumentException(sprintf('%s is not a valid logfile', $stream)); } -- 2.39.5