Skip to content

Commit

Permalink
fix: Use logger in Redis Session Handler
Browse files Browse the repository at this point in the history
  • Loading branch information
najdanovicivan committed Feb 22, 2024
1 parent 65c6a61 commit 6b361f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/Session/Handlers/RedisHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6b361f4

Please sign in to comment.