diff --git a/core/Db/Schema/Mysql.php b/core/Db/Schema/Mysql.php index 80356c17946d453e6e14d7b8967ebfb459864741..e8ee737bf006db95ce3dd298d098758895ccfe06 100644 --- a/core/Db/Schema/Mysql.php +++ b/core/Db/Schema/Mysql.php @@ -462,6 +462,9 @@ class Mysql implements SchemaInterface */ public function truncateAllTables() { + $message = 'truncateAllTables'; + \Piwik\Log::getInstance()->customLogToFileForDebuggingIfYouStillSeeThisHereRemoveIt($message, false); + $tablesAlreadyInstalled = $this->getTablesInstalled($forceReload = true); foreach ($tablesAlreadyInstalled as $table) { Db::query("TRUNCATE `$table`"); diff --git a/core/DbHelper.php b/core/DbHelper.php index 2b2d47a46ab9a9095187a184a7c4cb90d221f7ba..8dbf7d0a9e299bcb5cfd6bcf07c2142c1a239009 100644 --- a/core/DbHelper.php +++ b/core/DbHelper.php @@ -106,10 +106,6 @@ class DbHelper */ public static function dropDatabase($dbName = null) { - - $message = 'Drop DB '; - \Piwik\Log::getInstance()->customLogToFileForDebuggingIfYouStillSeeThisHereRemoveIt($message, false); - if (defined('PIWIK_TEST_MODE') && PIWIK_TEST_MODE) { Schema::getInstance()->dropDatabase($dbName); } diff --git a/core/Tracker.php b/core/Tracker.php index 29973c8981dc2e47b948e8dbdb3ac5dc59e9e3f5..90ca70ff5396a722e0f86a58bcda8446600040fe 100644 --- a/core/Tracker.php +++ b/core/Tracker.php @@ -801,8 +801,6 @@ class Tracker self::connectDatabaseIfNotConnected(); - Log::getInstance()->customLogToFileForDebuggingIfYouStillSeeThisHereRemoveIt('forceIpAnonymization'); - $privacyConfig = new PrivacyManagerConfig(); $privacyConfig->ipAddressMaskLength = 2; diff --git a/plugins/PrivacyManager/Config.php b/plugins/PrivacyManager/Config.php index 5a3d5c8a4ec24cab7e03323d043aa25d6415384a..a1e3929fa5b3d9c9044c609ce13e78bec088916c 100644 --- a/plugins/PrivacyManager/Config.php +++ b/plugins/PrivacyManager/Config.php @@ -8,7 +8,6 @@ */ namespace Piwik\Plugins\PrivacyManager; -use Piwik\Log; use Piwik\Option; use Piwik\Tracker\Cache; @@ -94,9 +93,6 @@ class Config settype($value, $config['type']); } - $message = 'set new value ' . $name . ' : ' . $value; - Log::getInstance()->customLogToFileForDebuggingIfYouStillSeeThisHereRemoveIt($message); - Option::set($this->prefix($name), $value); Cache::clearCacheGeneral(); } diff --git a/plugins/PrivacyManager/IPAnonymizer.php b/plugins/PrivacyManager/IPAnonymizer.php index bad1a7603551d427e5c8832fe115b2a17bda1afc..34b176eedb600b2377dc33fd416f539101a024bc 100644 --- a/plugins/PrivacyManager/IPAnonymizer.php +++ b/plugins/PrivacyManager/IPAnonymizer.php @@ -9,7 +9,6 @@ namespace Piwik\Plugins\PrivacyManager; use Piwik\Common; -use Piwik\Config as PiwikConfig; use Piwik\IP; use Piwik\Log; @@ -88,19 +87,6 @@ class IPAnonymizer */ public static function activate() { - $dbConfig = PiwikConfig::getInstance()->database; - $message = 'DB Config ' . var_export($dbConfig, 1); - \Piwik\Log::getInstance()->customLogToFileForDebuggingIfYouStillSeeThisHereRemoveIt($message, false); - - $privacyOptions = \Piwik\Option::getLike('PrivacyManager'); - $message = 'Privacy Options ' . var_export($privacyOptions, 1); - \Piwik\Log::getInstance()->customLogToFileForDebuggingIfYouStillSeeThisHereRemoveIt($message, false); - - $message = 'activate anonmyizer'; - Log::getInstance()->customLogToFileForDebuggingIfYouStillSeeThisHereRemoveIt($message); - $message = var_export($_SERVER, 1); - Log::getInstance()->customLogToFileForDebuggingIfYouStillSeeThisHereRemoveIt($message, false); - $privacyConfig = new Config(); $privacyConfig->ipAnonymizerEnabled = true; } diff --git a/tests/LocalTracker.php b/tests/LocalTracker.php index 003d48cf997c5f2c79b84a43f1a247e7834c1bd9..366996b46579e970d676ffe62877ec7fb49705ce 100755 --- a/tests/LocalTracker.php +++ b/tests/LocalTracker.php @@ -43,14 +43,6 @@ class Piwik_LocalTracker extends PiwikTracker $requests = array($testEnvironmentArgs); } - $dbConfig = Config::getInstance()->database; - $message = 'DB Config ' . var_export($dbConfig, 1); - \Piwik\Log::getInstance()->customLogToFileForDebuggingIfYouStillSeeThisHereRemoveIt($message, false); - - $privacyOptions = \Piwik\Option::getLike('PrivacyManager'); - $message = 'Privacy Options ' . var_export($privacyOptions, 1); - \Piwik\Log::getInstance()->customLogToFileForDebuggingIfYouStillSeeThisHereRemoveIt($message, false); - // unset cached values Cache::$trackerCache = null; Tracker::setForceIp(null);