diff options
Diffstat (limited to 'core/Log.php')
-rw-r--r-- | core/Log.php | 4 |
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); } |