Skip to content
Snippets Groups Projects
Commit 6c93bcc8 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #9621 from owncloud/fix_logger_implementation

fix logger implementation
parents 40fe1275 4a855be8
No related branches found
No related tags found
No related merge requests found
...@@ -154,6 +154,6 @@ class Log implements ILogger { ...@@ -154,6 +154,6 @@ class Log implements ILogger {
$message = strtr($message, $replace); $message = strtr($message, $replace);
$logger = $this->logger; $logger = $this->logger;
$logger::write($app, $message, $level); call_user_func(array($logger, 'write'), $app, $message, $level);
} }
} }
...@@ -19,7 +19,7 @@ class Logger extends \PHPUnit_Framework_TestCase { ...@@ -19,7 +19,7 @@ class Logger extends \PHPUnit_Framework_TestCase {
public function setUp() { public function setUp() {
self::$logs = array(); self::$logs = array();
$this->logger = new Log($this); $this->logger = new Log('Test\Logger');
} }
public function testInterpolation() { public function testInterpolation() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment