mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
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:
parent
612088bef2
commit
5b9966feba
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue