diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-05-14 06:57:58 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-05-14 06:57:58 +0400 |
commit | 6a85ad347f00dc5003e630c83c8cb1709a3270f5 (patch) | |
tree | 7682eba167f4af1cf78701b7e83dcc7f901b8ecb | |
parent | 6b18957a1564d4c69c65200611d47beb79ea0eed (diff) |
Hide errors output in CI build. This could be fixed in much better with Dependency injection refs #4917
-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); } |