Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2018-09-06 01:33:03 +0300
committerGitHub <noreply@github.com>2018-09-06 01:33:03 +0300
commitd679c5571ece625b9863c63ad9b99d09f28ce63f (patch)
tree92c8d40c945c21d9aaf13837eac24f91c7de4e97 /plugins/Monolog/config
parent04c8456861787b50b22444617bef114eb00be7e1 (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.php6
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'])) {