From 6a85ad347f00dc5003e630c83c8cb1709a3270f5 Mon Sep 17 00:00:00 2001 From: mattab Date: Wed, 14 May 2014 14:57:58 +1200 Subject: Hide errors output in CI build. This could be fixed in much better with Dependency injection refs #4917 --- core/Log.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/Log.php') 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); } -- cgit v1.2.3