diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-11-14 01:46:32 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-11-14 01:46:32 +0300 |
commit | 40e67157a46111053f4abb5218e9c7246c90d5f9 (patch) | |
tree | 57ca69ad0428eecde91a33005b000e98ec9c8d49 /core/Log.php | |
parent | 90129349049e9d9c941b7b69000998b588aa9f66 (diff) |
Bugfix
Diffstat (limited to 'core/Log.php')
-rw-r--r-- | core/Log.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/Log.php b/core/Log.php index ab6c6070e9..1315362c38 100644 --- a/core/Log.php +++ b/core/Log.php @@ -314,6 +314,13 @@ class Log extends Singleton private function setLogFilePathFromConfig($logConfig) { $logPath = @$logConfig[self::LOGGER_FILE_PATH_CONFIG_OPTION]; + + // Absolute path + if (strpos($logPath, '/') === 0) { + $this->logToFilePath = $logPath; + return; + } + // Remove 'tmp/' at the beginning if (strpos($logPath, 'tmp/') === 0) { $logPath = substr($logPath, strlen('tmp')); |