Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-kernel/Log/Logger.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
38 private $handle; | 38 private $handle; |
39 | 39 |
40 public function __construct($minLevel = null, $output = 'php://stderr', callable $formatter = null) | 40 public function __construct($minLevel = null, $output = 'php://stderr', callable $formatter = null) |
41 { | 41 { |
42 if (null === $minLevel) { | 42 if (null === $minLevel) { |
43 $minLevel = LogLevel::WARNING; | 43 $minLevel = 'php://stdout' === $output || 'php://stderr' === $output ? LogLevel::CRITICAL : LogLevel::WARNING; |
44 | 44 |
45 if (isset($_ENV['SHELL_VERBOSITY']) || isset($_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'])) { | 46 switch ((int) (isset($_ENV['SHELL_VERBOSITY']) ? $_ENV['SHELL_VERBOSITY'] : $_SERVER['SHELL_VERBOSITY'])) { |
47 case -1: $minLevel = LogLevel::ERROR; break; | 47 case -1: $minLevel = LogLevel::ERROR; break; |
48 case 1: $minLevel = LogLevel::NOTICE; break; | 48 case 1: $minLevel = LogLevel::NOTICE; break; |