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:
authormattab <matthieu.aubry@gmail.com>2013-10-22 01:59:17 +0400
committermattab <matthieu.aubry@gmail.com>2013-10-22 01:59:17 +0400
commit3760ca1fd8fe6e62b9480bf88780e70c8e160b90 (patch)
treee42f7f431b95860284a546189f1388b7eea8f428 /core/Log.php
parentb12d4b972d031ebf66d8cfc682757a606e4f06b8 (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.php5
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)