From e231cbd9066542bbf7a6dc534046b3b27d8a0c15 Mon Sep 17 00:00:00 2001 From: Patrick Dawkins Date: Fri, 27 Dec 2024 10:05:14 +0000 Subject: [PATCH] Ensure debug output when the _DEBUG env var is set --- src/Application.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Application.php b/src/Application.php index a76e50ffc..c9323cdc6 100644 --- a/src/Application.php +++ b/src/Application.php @@ -315,6 +315,11 @@ protected function configureIO(InputInterface $input, OutputInterface $output): } } + if (getenv($this->envPrefix . 'DEBUG')) { + $output->setVerbosity(OutputInterface::VERBOSITY_DEBUG); + $shellVerbosity = 3; + } + if (0 > $shellVerbosity) { $input->setInteractive(false); }