Skip to content

Commit

Permalink
Change default log level for output streams
Browse files Browse the repository at this point in the history
  • Loading branch information
yceruto committed Mar 9, 2019
1 parent e9c8e19 commit d69d571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpKernel/Log/Logger.php
Expand Up @@ -40,7 +40,7 @@ class Logger extends AbstractLogger
public function __construct($minLevel = null, $output = 'php://stderr', callable $formatter = null)
{
if (null === $minLevel) {
$minLevel = LogLevel::WARNING;
$minLevel = 'php://stdout' === $output || 'php://stderr' === $output ? LogLevel::CRITICAL : LogLevel::WARNING;

if (isset($_ENV['SHELL_VERBOSITY']) || isset($_SERVER['SHELL_VERBOSITY'])) {
switch ((int) (isset($_ENV['SHELL_VERBOSITY']) ? $_ENV['SHELL_VERBOSITY'] : $_SERVER['SHELL_VERBOSITY'])) {
Expand Down

0 comments on commit d69d571

Please sign in to comment.