aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Log.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Log.php')
-rw-r--r--lib/private/Log.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/private/Log.php b/lib/private/Log.php
index 59233cf5c12..0a707f3d4ea 100644
--- a/lib/private/Log.php
+++ b/lib/private/Log.php
@@ -103,7 +103,12 @@ class Log implements ILogger {
// FIXME: Add this for backwards compatibility, should be fixed at some point probably
if($logger === null) {
- $this->logger = 'OC\\Log\\'.ucfirst($this->config->getValue('log_type', 'owncloud'));
+ // TODO: Drop backwards compatibility for config in the future
+ $logType = $this->config->getValue('log_type', 'file');
+ if($logType==='owncloud') {
+ $logType = 'file';
+ }
+ $this->logger = 'OC\\Log\\'.ucfirst($logType);
call_user_func(array($this->logger, 'init'));
} else {
$this->logger = $logger;