diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-04-20 14:35:37 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-22 20:41:49 +0200 |
commit | dd34cb75404fb806da7e780bc5804fc958a75456 (patch) | |
tree | 9a8298a0e72f004ed3ff90984f2f19c509b4c007 /cron.php | |
parent | 8748e636f69c290926a297a24d21b248ad58de53 (diff) | |
download | nextcloud-server-dd34cb75404fb806da7e780bc5804fc958a75456.tar.gz nextcloud-server-dd34cb75404fb806da7e780bc5804fc958a75456.zip |
Less deprecated calls to OCP\Util::writeLog
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -41,11 +41,11 @@ try { require_once __DIR__ . '/lib/base.php'; if (\OCP\Util::needUpgrade()) { - \OCP\Util::writeLog('cron', 'Update required, skipping cron', \OCP\Util::DEBUG); + \OC::$server->getLogger()->debug('Update required, skipping cron', ['app' => 'cron']); exit; } if (\OC::$server->getSystemConfig()->getValue('maintenance', false)) { - \OCP\Util::writeLog('cron', 'We are in maintenance mode, skipping cron', \OCP\Util::DEBUG); + \OC::$server->getLogger()->debug('We are in maintenance mode, skipping cron', ['app' => 'cron']); exit; } |