aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2024-06-25 15:16:40 +0200
committerJulius Härtl <jus@bitgrid.net>2024-08-07 09:02:10 +0200
commit2b38d6ae7e0602d164bb26affa8a877b818e9cb5 (patch)
tree4917f090e30515b8c27f4eec5ae2492cfae1af40 /lib/base.php
parentfbbc10466b79caea0b9d1f718d4abdd021df241c (diff)
downloadnextcloud-server-2b38d6ae7e0602d164bb26affa8a877b818e9cb5.tar.gz
nextcloud-server-2b38d6ae7e0602d164bb26affa8a877b818e9cb5.zip
fix(session): Log when session_* calls are slow
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index c84a1246288..bf324e946bc 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -388,7 +388,10 @@ class OC {
try {
// set the session name to the instance id - which is unique
- $session = new \OC\Session\Internal($sessionName);
+ $session = new \OC\Session\Internal(
+ $sessionName,
+ logger('core'),
+ );
$cryptoWrapper = Server::get(\OC\Session\CryptoWrapper::class);
$session = $cryptoWrapper->wrapSession($session);