diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2018-09-06 01:33:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-06 01:33:03 +0300 |
commit | d679c5571ece625b9863c63ad9b99d09f28ce63f (patch) | |
tree | 92c8d40c945c21d9aaf13837eac24f91c7de4e97 /plugins/Monolog/config | |
parent | 04c8456861787b50b22444617bef114eb00be7e1 (diff) |
Add [tests] config option to enable logging in tests. (#13335)
* Add [tests] config option to enable logging in tests.
* Allow tests:run/tests:run-ui commands to enable logging for individual runs + during tests only log to file.
* Remove Fixture field
* fix failing test
* fixing build
* Fix another failure.
* Fix an other test.
Diffstat (limited to 'plugins/Monolog/config')
-rw-r--r-- | plugins/Monolog/config/tracker.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Monolog/config/tracker.php b/plugins/Monolog/config/tracker.php index c9d0044b35..620101ff7a 100644 --- a/plugins/Monolog/config/tracker.php +++ b/plugins/Monolog/config/tracker.php @@ -10,13 +10,13 @@ function isTrackerDebugEnabled(ContainerInterface $c) return array( - 'Psr\Log\LoggerInterface' => function (ContainerInterface $c) { + 'Psr\Log\LoggerInterface' => \DI\decorate(function ($previous, ContainerInterface $c) { if (isTrackerDebugEnabled($c)) { - return $c->get('Monolog\Logger'); + return $previous; } else { return new \Psr\Log\NullLogger(); } - }, + }), 'log.handler.classes' => DI\decorate(function ($previous) { if (isset($previous['screen'])) { |