summaryrefslogtreecommitdiff
path: root/vendor/symfony/translation/LoggingTranslator.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/translation/LoggingTranslator.php')
-rw-r--r--vendor/symfony/translation/LoggingTranslator.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/symfony/translation/LoggingTranslator.php b/vendor/symfony/translation/LoggingTranslator.php
index d6b711d27e..3a84bf1170 100644
--- a/vendor/symfony/translation/LoggingTranslator.php
+++ b/vendor/symfony/translation/LoggingTranslator.php
@@ -82,7 +82,9 @@ class LoggingTranslator implements TranslatorInterface, LegacyTranslatorInterfac
*/
public function setLocale($locale)
{
+ $prev = $this->translator->getLocale();
$this->translator->setLocale($locale);
+ $this->logger->debug(sprintf('The locale of the translator has changed from "%s" to "%s".', $prev, $locale));
}
/**