diff --git a/lib/log/rotate.php b/lib/log/rotate.php
index b620f0be15cbd72ef7f7098fb2a5c719cad34940..bf23ad588b349abd059f82b853c58487ed0a63be 100644
--- a/lib/log/rotate.php
+++ b/lib/log/rotate.php
@@ -17,7 +17,7 @@ namespace OC\Log;
 class Rotate extends \OC\BackgroundJob\Job {
 	private $max_log_size;
 	public function run($logFile) {
-		$this->max_log_size = OC_Config::getValue('log_rotate_size', false);
+		$this->max_log_size = \OC_Config::getValue('log_rotate_size', false);
 		if ($this->max_log_size) {
 			$filesize = @filesize($logFile);
 			if ($filesize >= $this->max_log_size) {