Add Fallback in case the logfile isn't accessible.

- Fixes https://github.com/friendica/friendica/issues/7756#issuecomment-544227862
This commit is contained in:
Philipp Holzer
2019-10-21 21:53:55 +02:00
parent 2edccf9341
commit 0e84a843a4
2 changed files with 23 additions and 13 deletions

View File

@@ -81,6 +81,8 @@ class StreamLogger extends AbstractLogger
} else {
throw new \InvalidArgumentException(sprintf('The level "%s" is not valid.', $level));
}
$this->checkStream();
}
public function close()