mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2025-01-05 17:42:23 +08:00
oatpp::test::UnitTest print non-empty pools only on failure
This commit is contained in:
parent
a59a6d7166
commit
04393657e5
@ -59,7 +59,9 @@ void UnitTest::run(v_int32 times) {
|
||||
auto it = POOLS.begin();
|
||||
while (it != POOLS.end()) {
|
||||
auto pool = it->second;
|
||||
OATPP_LOGD("Pool", "name: '%s' [%d(objs)]", pool->getName().c_str(), pool->getObjectsCount());
|
||||
if(pool->getObjectsCount() != 0) {
|
||||
OATPP_LOGD("Pool", "name: '%s' [%d(objs)]", pool->getName().c_str(), pool->getObjectsCount());
|
||||
}
|
||||
it ++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user