Skip to content

Commit 8bd7794

Browse files
authored
Add -v compatibility for command
1 parent 5a7db86 commit 8bd7794

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SPC/command/BaseCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8080
$this->output = $output;
8181

8282
global $ob_logger;
83-
if ($input->getOption('debug')) {
83+
if ($input->getOption('debug') || $output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL) {
8484
$ob_logger = new ConsoleLogger(LogLevel::DEBUG, decorated: !$input->getOption('no-ansi'));
8585
define('DEBUG_MODE', true);
8686
} else {

0 commit comments

Comments
 (0)