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:
authormattab <matthieu.aubry@gmail.com>2014-05-14 06:57:58 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-14 06:57:58 +0400
commit6a85ad347f00dc5003e630c83c8cb1709a3270f5 (patch)
tree7682eba167f4af1cf78701b7e83dcc7f901b8ecb /core/Log.php
parent6b18957a1564d4c69c65200611d47beb79ea0eed (diff)
Hide errors output in CI build. This could be fixed in much better with Dependency injection refs #4917
Diffstat (limited to 'core/Log.php')
-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);
}