Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benakamoorthi@fastmail.fm>2014-07-11 05:09:20 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-07-11 05:09:20 +0400
commitb4b7cd4473c0ee1dfb331ec5a8d33a3143d9d8a3 (patch)
tree5b025c0a9c4ba0cf74d8b1e5aeab08788bcadfbc /core/Log.php
parent66e8153d4c5470bf0e4437c76ba4d7e3d91aad0c (diff)
Ignore warnings for file_put_contents in Log when logging to file.
Diffstat (limited to 'core/Log.php')
-rw-r--r--core/Log.php4
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);
}
}