8000 minor #25168 [HttpKernel] don't override existing verbosity env var (… · symfony/symfony@4cfd2d9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4cfd2d9

Browse files
minor #25168 [HttpKernel] don't override existing verbosity env var (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- [HttpKernel] don't override existing verbosity env var | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | While playing with the changes from #25162 I noticed that setting the `SHELL_VERBOSITY` env var in `phpunit.xml.dist` did not work as the kernel was setting the variable before the logic in the `Logger` class was executed. Commits ------- df4d6d6 don't override existing verbosity env var
2 parents a2844c0 + df4d6d6 commit 4cfd2d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function boot()
120120

121121
return;
122122
}
123-
if ($this->debug && !isset($_SERVER['SHELL_VERBOSITY'])) {
123+
if ($this->debug && !isset($_ENV['SHELL_VERBOSITY']) && !isset($_SERVER['SHELL_VERBOSITY'])) {
124124
putenv('SHELL_VERBOSITY=3');
125125
$_ENV['SHELL_VERBOSITY'] = 3;
126126
$_SERVER['SHELL_VERBOSITY'] = 3;

0 commit comments

Comments
 (0)
0