8000 [HttpKernel] Read $_ENV when checking SHELL_VERBOSITY · symfony/symfony@7de1af4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7de1af4

Browse files
[HttpKernel] Read $_ENV when checking SHELL_VERBOSITY
1 parent 1d7d564 commit 7de1af4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/HttpKernel/Log/Logger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public function __construct($minLevel = null, $output = 'php://stderr', callable
4242
if (null === $minLevel) {
4343
$minLevel = LogLevel::WARNING;
4444

45-
if (isset($_SERVER['SHELL_VERBOSITY'])) {
46-
switch ((int) $_SERVER['SHELL_VERBOSITY']) {
45+
if (isset($_ENV['SHELL_VERBOSITY']) || isset($_SERVER['SHELL_VERBOSITY'])) {
46+
switch ((int) (isset($_ENV['SHELL_VERBOSITY']) ? $_ENV['SHELL_VERBOSITY'] : $_SERVER['SHELL_VERBOSITY'])) {
4747
case -1: $minLevel = LogLevel::ERROR; break;
4848
case 1: $minLevel = LogLevel::NOTICE; break;
4949
case 2: $minLevel = LogLevel::INFO; break;

0 commit comments

Comments
 (0)
0