From 6b361f43a98995f4ed6c444cff874de4b13887f7 Mon Sep 17 00:00:00 2001 From: Najdanovic Ivan Date: Thu, 22 Feb 2024 10:28:16 +0100 Subject: [PATCH] fix: Use logger in Redis Session Handler --- system/Session/Handlers/RedisHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/Session/Handlers/RedisHandler.php b/system/Session/Handlers/RedisHandler.php index b429792929b4..a5a846e23461 100644 --- a/system/Session/Handlers/RedisHandler.php +++ b/system/Session/Handlers/RedisHandler.php @@ -313,13 +313,13 @@ protected function lockSession(string $sessionID): bool } while (++$attempt < 30); if ($attempt === 30) { - log_message('error', 'Session: Unable to obtain lock for ' . $this->keyPrefix . $sessionID . ' after 30 attempts, aborting.'); + $this->logger->error('Session: Unable to obtain lock for ' . $this->keyPrefix . $sessionID . ' after 30 attempts, aborting.'); return false; } if ($ttl === -1) { - log_message('debug', 'Session: Lock for ' . $this->keyPrefix . $sessionID . ' had no TTL, overriding.'); + $this->logger->debug('Session: Lock for ' . $this->keyPrefix . $sessionID . ' had no TTL, overriding.'); } $this->lock = true;