Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab1eb51

Browse files
author
Jérôme Deuchnord
committed
Re-log lost exception
1 parent 7277340 commit ab1eb51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Cache/Adapter/AbstractAdapter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ public function commit()
165165
$v = $values[$id];
166166
$type = \is_object($v) ? \get_class($v) : \gettype($v);
167167
$this->logger->warning(\sprintf(
168-
'Could not save key "%s" in cache: the %s type is not supported.',
168+
'Could not save key "%s" in cache: the %s type is not supported.'.PHP_EOL.
169+
'Tip: check that the type you are trying to save is cacheable: https://symfony.com/doc/current/components/cache.html#available-cache-adapters, or create your own adapter.',
169170
$id,
170171
$type
171-
));
172-
$this->logger->warning('Tip: check that the type you are trying to save is cacheable: https://symfony.com/doc/current/components/cache.html#available-cache-adapters, or create your own adapter.');
172+
), ['exception' => ($e instanceof \Exception) ? $e : null]);
173173
}
174174
} else {
175175
foreach ($values as $id => $v) {

0 commit comments

Comments
 (0)