Compare commits

...

1 Commits

Author SHA1 Message Date
Christoph Wurst 017b7f8444 fix(session): Log when session_start fails
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2024-01-12 18:01:54 +01:00
+4 -1
View File
@@ -36,6 +36,7 @@ namespace OC\Session;
use OC\Authentication\Token\IProvider;
use OCP\Authentication\Exceptions\InvalidTokenException;
use OCP\Session\Exceptions\SessionNotAvailableException;
use function OCP\Log\logger;
/**
* Class Internal
@@ -222,6 +223,8 @@ class Internal extends Session {
if (\OC::hasSessionRelaxedExpiry()) {
$sessionParams['read_and_close'] = $readAndClose;
}
$this->invoke('session_start', [$sessionParams], $silence);
if ($this->invoke('session_start', [$sessionParams], $silence) === false) {
logger('core')->critical('session_start failed');
}
}
}