Skip to content

Commit 0252830

Browse files
author
Amrouche Hamza
committed
[Profiler][Translation] Logging false by default and desactivated when using the profiler
1 parent a522e04 commit 0252830

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ private function addTranslatorSection(ArrayNodeDefinition $rootNode)
622622
->prototype('scalar')->end()
623623
->defaultValue(array('en'))
624624
->end()
625-
->booleanNode('logging')->defaultValue($this->debug)->end()
625+
->booleanNode('logging')->defaultValue(false)->end()
626626
->scalarNode('formatter')->defaultValue('translator.formatter.default')->end()
627627
->arrayNode('paths')
628628
->prototype('scalar')->end()

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ protected static function getBundleDefaultConfig()
152152
'translator' => array(
153153
'enabled' => !class_exists(FullStack::class),
154154
'fallbacks' => array('en'),
155-
'logging' => true,
155+
'logging' => false,
156156
'formatter' => 'translator.formatter.default',
157157
'paths' => array(),
158158
),

0 commit comments

Comments
 (0)