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:
authordiosmosis <benakamoorthi@fastmail.fm>2014-02-20 00:30:31 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-02-20 00:30:31 +0400
commit3e3c91a5da0ae0bfcac6a153e53b99f22ec7740f (patch)
treee3df7822efa556525b54e03f0d7b6ce4327effc7 /core/Log.php
parent0bc8526bf5b75955a85bd5ce86d95e0ac52c6bf8 (diff)
Do not log request key if in cli mode.
Diffstat (limited to 'core/Log.php')
-rw-r--r--core/Log.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Log.php b/core/Log.php
index 549584824c..b6f8230735 100644
--- a/core/Log.php
+++ b/core/Log.php
@@ -404,8 +404,9 @@ class Log extends Singleton
}
if (is_string($message)) {
- if (!defined('PIWIK_TEST_MODE')
- || !PIWIK_TEST_MODE
+ if ((!defined('PIWIK_TEST_MODE')
+ || !PIWIK_TEST_MODE)
+ && !Common::isPhpCliMode()
) {
$message = '[' . $currentRequestKey . '] ' . $message;
}