Skip to content

Commit

Permalink
fix(occ): Use the const instead of hardcoded string for --debug-log o…
Browse files Browse the repository at this point in the history
…ption

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Jul 8, 2024
1 parent 612088b commit 5b9966f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 5b9966f

Please sign in to comment.