diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-07-11 05:09:20 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-07-11 05:09:20 +0400 |
commit | b4b7cd4473c0ee1dfb331ec5a8d33a3143d9d8a3 (patch) | |
tree | 5b025c0a9c4ba0cf74d8b1e5aeab08788bcadfbc | |
parent | 66e8153d4c5470bf0e4437c76ba4d7e3d91aad0c (diff) |
Ignore warnings for file_put_contents in Log when logging to file.
-rw-r--r-- | core/Log.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Log.php b/core/Log.php index 2c67207b71..8bd2f5b95e 100644 --- a/core/Log.php +++ b/core/Log.php @@ -385,9 +385,9 @@ class Log extends Singleton return; } - if(!file_put_contents($this->logToFilePath, $message, FILE_APPEND)) { + if(!@file_put_contents($this->logToFilePath, $message, FILE_APPEND)) { $message = Filechecks::getErrorMessageMissingPermissions($this->logToFilePath); - throw new \Exception( $message ); + throw new \Exception($message); } } |