Fix debug mode and verbosity relation

This commit is contained in:
crazywhalecc
2025-12-11 13:46:15 +08:00
parent 2080407283
commit fe0b983f6c

View File

@@ -94,7 +94,7 @@ abstract class BaseCommand extends Command
} }
// Set debug mode in ApplicationContext // Set debug mode in ApplicationContext
$isDebug = $this->output->getVerbosity() >= OutputInterface::VERBOSITY_VERY_VERBOSE; $isDebug = $this->output->getVerbosity() >= OutputInterface::VERBOSITY_DEBUG;
ApplicationContext::setDebug($isDebug); ApplicationContext::setDebug($isDebug);
// show raw argv list for logger()->debug // show raw argv list for logger()->debug