summaryrefslogtreecommitdiffstats
path: root/console.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-07-02 16:02:44 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-07-02 16:02:44 +0200
commit9baf8fea8c6faf88ddf0fc969426b893f2fe2071 (patch)
treeb70b18f37e82139cc7584b8c955e489e37ececab /console.php
parent2ba0819243cfe5eedf148b6ff19d5070f1ff7844 (diff)
downloadnextcloud-server-9baf8fea8c6faf88ddf0fc969426b893f2fe2071.tar.gz
nextcloud-server-9baf8fea8c6faf88ddf0fc969426b893f2fe2071.zip
fix(occ): Move debug log listener setup to a static method, add option for level
Also changed option from --debug to --debug-log to avoid conflicts Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'console.php')
-rw-r--r--console.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/console.php b/console.php
index d6f5ee58efb..4e1acb00c97 100644
--- a/console.php
+++ b/console.php
@@ -75,13 +75,8 @@ try {
$eventLogger->start('console:build_application', 'Build Application instance and load commands');
$application = \OCP\Server::get(Application::class);
+ /* base.php will have removed eventual debug options from argv in $_SERVER */
$argv = $_SERVER['argv'];
- if (($key = array_search('--debug', $argv)) !== false) {
- // Remove --debug option if it was passed
- unset($argv[$key]);
- $argv = array_values($argv);
- }
-
$input = new ArgvInput($argv);
$application->loadCommands($input, new ConsoleOutput());