diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-07-08 16:09:39 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-07-08 16:09:39 +0200 |
commit | 5b9966feba3eea42cc961564ba32ff8d7ba28aa8 (patch) | |
tree | d30b4d66249fbb1df862adee80e518825ad00d38 /lib | |
parent | 612088bef27418fb6f05fd913aed69c97e381c10 (diff) | |
download | nextcloud-server-5b9966feba3eea42cc961564ba32ff8d7ba28aa8.tar.gz nextcloud-server-5b9966feba3eea42cc961564ba32ff8d7ba28aa8.zip |
fix(occ): Use the const instead of hardcoded string for --debug-log option
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index b7101c9e389..c84a1246288 100644 --- a/lib/base.php +++ b/lib/base.php @@ -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(); } |