diff --git a/src/Symfony/Component/Cache/Traits/ArrayTrait.php b/src/Symfony/Component/Cache/Traits/ArrayTrait.php index 18ef580f8d3d8..d29b528b96c39 100644 --- a/src/Symfony/Component/Cache/Traits/ArrayTrait.php +++ b/src/Symfony/Component/Cache/Traits/ArrayTrait.php @@ -129,7 +129,7 @@ private function freeze($value, $key) } catch (\Exception $e) { $type = \is_object($value) ? \get_class($value) : \gettype($value); $message = sprintf('Failed to save key "{key}" of type %s: %s', $type, $e->getMessage()); - CacheItem::log($this->logger, $message, ['key' => substr($key, \strlen($this->namespace)), 'exception' => $e]); + CacheItem::log($this->logger, $message, ['key' => $key, 'exception' => $e]); return; }