diff --git a/bin/phpunit-swoole b/bin/phpunit-swoole index f25ce2c2..36fa3e08 100755 --- a/bin/phpunit-swoole +++ b/bin/phpunit-swoole @@ -88,9 +88,8 @@ $framework = new Framework($options); $start = new OnStart(); $start->method = function () { try { - Console::setLevel(ZM_TEST_LOG_DEBUG); + Console::setLevel(ZM_TEST_LOG_DEBUG ? 4 : 0); $retcode = PHPUnit\TextUI\Command::main(false); - Console::setLevel(0); } finally { Console::setLevel(0); ZMUtil::stop(($retcode ?? 1) !== 0);