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:
Diffstat (limited to 'plugins/Monolog/config/config.php')
-rw-r--r--plugins/Monolog/config/config.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Monolog/config/config.php b/plugins/Monolog/config/config.php
index ff60f7c5bd..18e07c5c33 100644
--- a/plugins/Monolog/config/config.php
+++ b/plugins/Monolog/config/config.php
@@ -40,7 +40,10 @@ return array(
$writers = [];
foreach ($writerNames as $writerName) {
- if ($writerName === 'screen' && \Piwik\Common::isPhpCliMode()) {
+ if ($writerName === 'screen'
+ && \Piwik\Common::isPhpCliMode()
+ && !defined('PIWIK_TEST_MODE')
+ ) {
continue; // screen writer is only valid for web requests
}
@@ -112,6 +115,7 @@ return array(
return Log::getMonologLevel(constant('Piwik\Log::'.strtoupper($level)));
}
}
+
return Logger::WARNING;
}),