Skip to content

Commit ce34999

Browse files
committed
refactor: use $this->logger instead of log_message()
1 parent 9e37810 commit ce34999

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

system/Session/Handlers/RedisHandler.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,17 +325,15 @@ protected function lockSession(string $sessionID): bool
325325
} while (++$attempt < 30);
326326

327327
if ($attempt === 30) {
328-
log_message(
329-
'error',
328+
$this->logger->error(
330329
'Session: Unable to obtain lock for ' . $this->keyPrefix . $sessionID . ' after 30 attempts, aborting.'
331330
);
332331

333332
return false;
334333
}
335334

336335
if ($ttl === -1) {
337-
log_message(
338-
'debug',
336+
$this->logger->debug(
339337
'Session: Lock for ' . $this->keyPrefix . $sessionID . ' had no TTL, overriding.'
340338
);
341339
}

0 commit comments

Comments
 (0)