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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-12-05 01:01:47 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-12-05 01:01:47 +0300
commit28a07a8d13a05f923b3d231283261e484078de72 (patch)
treed390d11988875829b808a69a9095637a63b53716 /core/Common.php
parenta26cf222ff29851440d71cc63df7b3f8650100d3 (diff)
#6622 Logger refactoring: removed manual overriding of the log level in CLI since it's now dependent of the verbosity level
`Piwik\Log::setLogLevel` is now deprecated and doesn't do anything. Its usages have been removed.
Diffstat (limited to 'core/Common.php')
-rw-r--r--core/Common.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Common.php b/core/Common.php
index b5ed581d82..7907d42b80 100644
--- a/core/Common.php
+++ b/core/Common.php
@@ -1225,6 +1225,10 @@ class Common
$var = null;
}
+ /**
+ * @todo This method is weird, it's debugging statements but seem to only work for the tracker, maybe it
+ * should be moved elsewhere
+ */
public static function printDebug($info = '')
{
if (isset($GLOBALS['PIWIK_TRACKER_DEBUG']) && $GLOBALS['PIWIK_TRACKER_DEBUG']) {
@@ -1233,8 +1237,6 @@ class Common
$info = var_export($info, true);
}
- Log::getInstance()->setLogLevel(Log::DEBUG);
-
if (is_array($info) || is_object($info)) {
$info = Common::sanitizeInputValues($info);
$out = var_export($info, true);