summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-07-15 16:05:15 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-07-15 16:05:15 +0200
commit6c93bcc814b6f063c0ecf058307222f5c92b02ae (patch)
treea09026a3c29aa9524c741e8e9df9bedeedfd5b73
parent40fe1275de1dcdb3f17027ceeaef19164956e146 (diff)
parent4a855be8147d0735cb0c423a15532408edaffe34 (diff)
downloadnextcloud-server-6c93bcc814b6f063c0ecf058307222f5c92b02ae.tar.gz
nextcloud-server-6c93bcc814b6f063c0ecf058307222f5c92b02ae.zip
Merge pull request #9621 from owncloud/fix_logger_implementation
fix logger implementation
-rw-r--r--lib/private/log.php2
-rw-r--r--tests/lib/logger.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/log.php b/lib/private/log.php
index 98465ec40ea..021cc1578a7 100644
--- a/lib/private/log.php
+++ b/lib/private/log.php
@@ -154,6 +154,6 @@ class Log implements ILogger {
$message = strtr($message, $replace);
$logger = $this->logger;
- $logger::write($app, $message, $level);
+ call_user_func(array($logger, 'write'), $app, $message, $level);
}
}
diff --git a/tests/lib/logger.php b/tests/lib/logger.php
index 7d5d4049b28..fcdf5b58670 100644
--- a/tests/lib/logger.php
+++ b/tests/lib/logger.php
@@ -19,7 +19,7 @@ class Logger extends \PHPUnit_Framework_TestCase {
public function setUp() {
self::$logs = array();
- $this->logger = new Log($this);
+ $this->logger = new Log('Test\Logger');
}
public function testInterpolation() {