aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2024-01-12 18:01:54 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2024-01-12 18:01:54 +0100
commit017b7f8444a23851878225945df9910e411b9d69 (patch)
treebd0ab3ea43e92911a046a748df8d0a8f4fb803a3
parentb9e3e6f385c4ccc866cfc164b2286dcd3b73e8cb (diff)
downloadnextcloud-server-fix/session/log-session-start-error.tar.gz
nextcloud-server-fix/session/log-session-start-error.zip
fix(session): Log when session_start failsfix/session/log-session-start-error
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r--lib/private/Session/Internal.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php
index 5fb9b05c5f4..07a06c4adfe 100644
--- a/lib/private/Session/Internal.php
+++ b/lib/private/Session/Internal.php
@@ -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');
+ }
}
}