From d6adc0eba1c163a0adea620fcf53497f6ebe518b Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 22 Jun 2017 18:14:28 -0500 Subject: [PATCH] Deprecate static writeLog() method Signed-off-by: Morris Jobke --- lib/private/App/CodeChecker/DeprecationCheck.php | 1 + lib/public/Util.php | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/private/App/CodeChecker/DeprecationCheck.php b/lib/private/App/CodeChecker/DeprecationCheck.php index a700345238b..e19e06dd8f2 100644 --- a/lib/private/App/CodeChecker/DeprecationCheck.php +++ b/lib/private/App/CodeChecker/DeprecationCheck.php @@ -157,6 +157,7 @@ class DeprecationCheck extends AbstractCheck implements ICheck { 'OCP\Util::mb_str_replace' => '8.2.0', 'OCP\Util::mb_substr_replace' => '8.2.0', 'OCP\Util::sendMail' => '8.1.0', + 'OCP\Util::writeLog' => '13.0.0', ]; } } diff --git a/lib/public/Util.php b/lib/public/Util.php index c2324e59bd4..02b59c370a0 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -150,6 +150,7 @@ class Util { * @param string $message * @param int $level * @since 4.0.0 + * @deprecated 13.0.0 use log of \OCP\ILogger */ public static function writeLog( $app, $message, $level ) { $context = ['app' => $app];