aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-07-08 16:09:39 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-07-08 16:09:39 +0200
commit5b9966feba3eea42cc961564ba32ff8d7ba28aa8 (patch)
treed30b4d66249fbb1df862adee80e518825ad00d38 /lib
parent612088bef27418fb6f05fd913aed69c97e381c10 (diff)
downloadnextcloud-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.php2
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();
}