diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-07-03 15:02:51 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-07-03 18:00:16 +0200 |
commit | 403deb2a33e6126d191fea93075b2ad72912a7bf (patch) | |
tree | 7796739a0973de430a44af65848ede3540c34002 /lib | |
parent | 1385b1ec487d1ce97ca520247bc32e35b23d837b (diff) | |
download | nextcloud-server-403deb2a33e6126d191fea93075b2ad72912a7bf.tar.gz nextcloud-server-403deb2a33e6126d191fea93075b2ad72912a7bf.zip |
Fixing unit test execution
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/util.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/public/util.php b/lib/public/util.php index 76f0ea24b46..06ad5de60ca 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -78,7 +78,7 @@ class Util { public static function setChannel($channel) { //Flush timestamp to reload version.php \OC::$server->getSession()->set('OC_Version_Timestamp', 0); - return \OC::$server->getAppConfig()->setValue('core', 'OC_Channel', $channel); + \OC::$server->getAppConfig()->setValue('core', 'OC_Channel', $channel); } /** @@ -148,8 +148,8 @@ class Util { * @since 4.0.0 */ public static function writeLog( $app, $message, $level ) { - // call the internal log class - \OCP\Util::writeLog( $app, $message, $level ); + $context = ['app' => $app]; + \OC::$server->getLogger()->log($level, $message, $context); } /** |