diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-07-03 07:11:09 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-07-03 07:11:09 +0400 |
commit | 29f8b8548fc4e72b82733382e17147965f279842 (patch) | |
tree | c9ea4e0e115a6cd6aeeff3c1c8703ced21e168de /core/Log.php | |
parent | e5fd95f234a068ca67387a3a30ce5e32c417ef05 (diff) |
debugging not passing ui tests the hard way, hopefully it actually logs to the log file
Diffstat (limited to 'core/Log.php')
-rw-r--r-- | core/Log.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/Log.php b/core/Log.php index c568bdb0a2..4660517f5a 100644 --- a/core/Log.php +++ b/core/Log.php @@ -373,6 +373,14 @@ class Log extends Singleton $this->currentLogLevel = $logLevel; } + public function customLogToFileForDebuggingIfYouStillSeeThisHereRemoveIt($message) + { + 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); |