Skip to content

Commit

Permalink
Ensure debug output when the _DEBUG env var is set
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcdawkins committed Dec 27, 2024
1 parent 41efa07 commit e231cbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e231cbd

Please sign in to comment.