Skip to content

Commit 437f447

Browse files
[Cache] fix logger usage in CacheTrait::doGet()
1 parent 92e12b9 commit 437f447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CacheTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private function doGet(CacheItemPoolInterface $pool, string $key, callable $call
5656
if ($recompute = $ctime && $expiry && $expiry <= ($now = microtime(true)) - $ctime / 1000 * $beta * log(random_int(1, PHP_INT_MAX) / PHP_INT_MAX)) {
5757
// force applying defaultLifetime to expiry
5858
$item->expiresAt(null);
59-
$this->logger && $this->logger->info('Item "{key}" elected for early recomputation {delta}s before its expiration', [
59+
$logger && $logger->info('Item "{key}" elected for early recomputation {delta}s before its expiration', [
6060
'key' => $key,
6161
'delta' => sprintf('%.1f', $expiry - $now),
6262
]);

0 commit comments

Comments
 (0)