From f1c730962bb1542eaee8df3bee39822650f24854 Mon Sep 17 00:00:00 2001 From: Jerry Ma Date: Sat, 30 Apr 2022 17:24:26 +0800 Subject: [PATCH] Fix ZM_TEST_LOG_DEBUG bug, remove redundant code --- bin/phpunit-swoole | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);