Commit 34bbb1b2 by 朱海

[chg]打印日志

1 parent 6eccc8c7
......@@ -153,7 +153,10 @@ public class ReidService {
try {
CompletableFuture<AlgResult> response = matchClient.EASY_POOL_API.queryPool(poolName);
AlgResult result = response.get(20, TimeUnit.SECONDS);
if (result.getErrCode().equals(4)) {
if (result != null) {
log.info(result.toString());
}
if (result!= null && result.getErrCode().equals(4)) {
CompletableFuture<AlgResult> future = matchClient.EASY_POOL_API.createEmptyPool(poolName);
future.get();
}
......@@ -170,7 +173,12 @@ public class ReidService {
Person person = new Person().setPersonId(data.getPersonUnid()).setBodyFeatures(getBodyFeatures(feature, data.getUnid(), data.getGateId())).setCounttime(data.getCountTime());
CompletableFuture<AlgResult> future = matchClient.EASY_PERSON_API.addPerson(poolName, Lists.newArrayList(person));
AlgResult result1 = future.get(20, TimeUnit.SECONDS);
log.info(result1.toString());
if (result1 != null) {
log.info("添加特征池返回:{}", result1.toString());
} else {
log.info("添加特征池超时");
throw new RuntimeException("添加特征池超时");
}
}
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!