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/Log.php | |
parent | 6f2c8681ea071afa47e72df6bd2884fd0b4ce421 (diff) |
remove all logs again and disable location settings to see if this causes it
Diffstat (limited to 'core/Log.php')
-rw-r--r-- | core/Log.php | 21 |
1 files changed, 0 insertions, 21 deletions
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); |