Skip to content

Commit edb0090

Browse files
committed
Fix: writing to log failed when file not existed
1 parent 1ce9657 commit edb0090

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SimpleSAML/Logger/FileLoggingHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function __construct(Configuration $config)
7373
$config->getOptionalString('logging.processname', 'SimpleSAMLphp')
7474
);
7575

76-
$file = new File($this->logFile);
76+
$file = new File($this->logFile, false);
7777
// Suppress E_WARNING if not exists
7878
if (@$this->fileSystem->exists($this->logFile)) {
7979
if (!$file->isWritable()) {

0 commit comments

Comments
 (0)