Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ca6515c

Browse filesBrowse files
[Cache] fix logger usage in CacheTrait::doGet()
1 parent 766162c commit ca6515c
Copy full SHA for ca6515c

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Contracts/Cache/CacheTrait.php

Copy file name to clipboardExpand all lines: src/Symfony/Contracts/Cache/CacheTrait.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.