Fix logic

This commit is contained in:
Philipp 2023-02-13 11:34:32 +01:00
parent 3db2778fcd
commit 3894b6fa41
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432

View File

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