diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-07-07 14:58:38 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-07-07 14:58:38 +0400 |
commit | 58cce01e613ad7379563336d0b9baf88e48692f2 (patch) | |
tree | 91992e51505477c0bc92d55bc516df9bca75a1a8 /core | |
parent | 6f2c8681ea071afa47e72df6bd2884fd0b4ce421 (diff) |
remove all logs again and disable location settings to see if this causes it
Diffstat (limited to 'core')
-rw-r--r-- | core/Db/Schema/Mysql.php | 3 | ||||
-rw-r--r-- | core/Log.php | 21 |
2 files changed, 0 insertions, 24 deletions
diff --git a/core/Db/Schema/Mysql.php b/core/Db/Schema/Mysql.php index e8ee737bf0..80356c1794 100644 --- a/core/Db/Schema/Mysql.php +++ b/core/Db/Schema/Mysql.php @@ -462,9 +462,6 @@ 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/Log.php b/core/Log.php index 7d9e501ddf..5dc22d37c2 100644 --- a/core/Log.php +++ b/core/Log.php @@ -379,27 +379,6 @@ class Log extends Singleton return $this->currentLogLevel; } - public function customLogToFileForDebuggingIfYouStillSeeThisHereRemoveIt($message, $addTrace = true) - { - if ($addTrace) { - $message = $message . "\n"; - $backTrace = debug_backtrace(); - $backTrace = array_slice($backTrace, 1, 2); - - foreach ($backTrace as &$trace) { - if (!empty($trace['object'])) { - unset($trace['object']); - } - } - $message .= var_export($backTrace, 1); - } - - if(!file_put_contents($this->logToFilePath, $message . "\n", FILE_APPEND)) { - $message = Filechecks::getErrorMessageMissingPermissions($this->logToFilePath); - throw new \Exception( $message ); - } - } - private function logToFile($level, $tag, $datetime, $message) { $message = $this->getMessageFormattedFile($level, $tag, $datetime, $message); |