diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php index ece5ba61b5da3..5949471965bca 100644 --- a/lib/private/Session/Internal.php +++ b/lib/private/Session/Internal.php @@ -15,6 +15,7 @@ use OCP\Session\Exceptions\SessionNotAvailableException; use Psr\Log\LoggerInterface; use function call_user_func_array; +use function OCP\Log\logger; /** * Class Internal @@ -194,7 +195,7 @@ public function trapError(int $errorNumber, string $errorString) { private function invoke(string $functionName, array $parameters = [], bool $silence = false) { try { return $this->monitorAndLog( - $this->logger, + $this->logger ?? logger('core'), $functionName, function () use ($silence, $functionName, $parameters) { if ($silence) {