From b4b7cd4473c0ee1dfb331ec5a8d33a3143d9d8a3 Mon Sep 17 00:00:00 2001 From: diosmosis Date: Thu, 10 Jul 2014 18:09:20 -0700 Subject: Ignore warnings for file_put_contents in Log when logging to file. --- core/Log.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/Log.php') 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); } } -- cgit v1.2.3