fix(occ): Use the const instead of hardcoded string for --debug-log option

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2024-07-08 16:09:39 +02:00
parent 612088bef2
commit 5b9966feba
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -579,7 +579,7 @@ class OC {
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();
}