Merge pull request #760 from lyrixx/better-exception

Better exception
This commit is contained in:
Marc
2025-06-12 12:10:20 +07:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -80,7 +80,7 @@ abstract class BaseCommand extends Command
$this->output = $output;
global $ob_logger;
if ($input->getOption('debug')) {
if ($input->getOption('debug') || $output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL) {
$ob_logger = new ConsoleLogger(LogLevel::DEBUG, decorated: !$input->getOption('no-ansi'));
define('DEBUG_MODE', true);
} else {