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:
-rw-r--r--core/Log.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Log.php b/core/Log.php
index e9b9153e17..09d548a7f0 100644
--- a/core/Log.php
+++ b/core/Log.php
@@ -592,6 +592,10 @@ class Log extends Singleton
*/
private function writeErrorToStandardErrorOutput($message)
{
+ if(defined('PIWIK_TEST_MODE')) {
+ // do not log on stderr during tests (prevent display of errors in CI output)
+ return;
+ }
$fe = fopen('php://stderr', 'w');
fwrite($fe, $message);
}