修复重试逻辑
This commit is contained in:
parent
ef6c164c0f
commit
707c38da72
@ -127,7 +127,7 @@ public class WvpService {
|
||||
try {
|
||||
genericRetryer.call(() -> video(asyncResponse, deviceCode, deviceId, channelId, startTime, endTime));
|
||||
} catch (RetryException e) {
|
||||
String reason = MessageFormat.format("查询失败, 已重试 {0} 次", e.getNumberOfFailedAttempts());
|
||||
String reason = MessageFormat.format("调用 wvp api 查询设备历史失败, 已重试 {0} 次", e.getNumberOfFailedAttempts());
|
||||
log.error(reason);
|
||||
writeErrorToResponse(asyncResponse, JsonResponse.error(reason));
|
||||
} catch (Exception e) {
|
||||
|
Loading…
Reference in New Issue
Block a user