diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-10-22 01:59:17 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-10-22 01:59:17 +0400 |
commit | 3760ca1fd8fe6e62b9480bf88780e70c8e160b90 (patch) | |
tree | e42f7f431b95860284a546189f1388b7eea8f428 /core/Log.php | |
parent | b12d4b972d031ebf66d8cfc682757a606e4f06b8 (diff) |
Tracker refactor + fix bug in bulk authentication + Cleanup some of Transitions code refs #472
Diffstat (limited to 'core/Log.php')
-rw-r--r-- | core/Log.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/Log.php b/core/Log.php index 3c3d06eb89..0f883ab631 100644 --- a/core/Log.php +++ b/core/Log.php @@ -351,7 +351,10 @@ class Log extends Singleton return; } - file_put_contents($this->logToFilePath, $message . "\n", FILE_APPEND); + if(!file_put_contents($this->logToFilePath, $message . "\n", FILE_APPEND)) { + $message = Filechecks::getErrorMessageMissingPermissions($this->logToFilePath); + throw new \Exception( $message ); + } } private function logToScreen($level, $tag, $datetime, $message) |