From 2b38d6ae7e0602d164bb26affa8a877b818e9cb5 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 25 Jun 2024 15:16:40 +0200 Subject: fix(session): Log when session_* calls are slow Signed-off-by: Christoph Wurst --- lib/base.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/base.php') 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); -- cgit v1.2.3