diff --git a/lib/public/util.php b/lib/public/util.php
index 76f0ea24b46e9b20ca723cda69998e26c72c8f39..06ad5de60ca931f7544c33a76e0e8a5b00073ff1 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);
 	}
 
 	/**
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index e4ba135b599883d32ec58bc8e7dbe35aa6b1f351..bd94ca67754dc8907d9a5b3a89338d90219d7fa6 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -17,4 +17,3 @@ if (!class_exists('PHPUnit_Framework_TestCase')) {
 }
 
 OC_Hook::clear();
-\OCP\Util::$enabled = false;