[Pkg-owncloud-commits] [owncloud] 30/59: fix logger implementation and test

David Prévot taffit at moszumanska.debian.org
Fri Jul 18 16:19:27 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 8ebe6ce7bbd5b4fbc7958d5c3366fd5f38544ed6
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date:   Mon Jul 14 19:28:29 2014 +0200

    fix logger implementation and test
---
 lib/private/log.php  | 2 +-
 tests/lib/logger.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/private/log.php b/lib/private/log.php
index 98465ec..021cc15 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 7d5d404..fcdf5b5 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() {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list