mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(session): handle null logger
Signed-off-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com>
This commit is contained in:
parent
acb3e68a93
commit
7e188433a1
1 changed files with 2 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ use OCP\Authentication\Exceptions\InvalidTokenException;
|
|||
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 @@ class Internal extends Session {
|
|||
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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue