From 5b9966feba3eea42cc961564ba32ff8d7ba28aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Mon, 8 Jul 2024 16:09:39 +0200 Subject: [PATCH] fix(occ): Use the const instead of hardcoded string for --debug-log option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base.php b/lib/base.php index b7101c9e389e7..c84a124628889 100644 --- a/lib/base.php +++ b/lib/base.php @@ -579,7 +579,7 @@ public static function init(): void { self::$server = new \OC\Server(\OC::$WEBROOT, self::$config); self::$server->boot(); - if (self::$CLI && in_array('--debug-log', $_SERVER['argv'])) { + if (self::$CLI && in_array('--'.\OCP\Console\ReservedOptions::DEBUG_LOG, $_SERVER['argv'])) { \OC\Core\Listener\BeforeMessageLoggedEventListener::setup(); }