summaryrefslogtreecommitdiffstats
path: root/lib/private/Log.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Log.php')
-rw-r--r--lib/private/Log.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Log.php b/lib/private/Log.php
index 59233cf5c12..2d06e62f54c 100644
--- a/lib/private/Log.php
+++ b/lib/private/Log.php
@@ -103,7 +103,9 @@ 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');
+ $this->logger = 'OC\\Log\\'.ucfirst($logType=='owncloud' ? 'file' : $logType);
call_user_func(array($this->logger, 'init'));
} else {
$this->logger = $logger;