diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-02-20 00:30:31 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-02-20 00:30:31 +0400 |
commit | 3e3c91a5da0ae0bfcac6a153e53b99f22ec7740f (patch) | |
tree | e3df7822efa556525b54e03f0d7b6ce4327effc7 /core/Log.php | |
parent | 0bc8526bf5b75955a85bd5ce86d95e0ac52c6bf8 (diff) |
Do not log request key if in cli mode.
Diffstat (limited to 'core/Log.php')
-rw-r--r-- | core/Log.php | 5 |
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; } |