REM:
1. 增加迪普接口调用日志
This commit is contained in:
HuangXin 2020-10-14 14:20:42 +08:00
parent 6ede312510
commit f1ed6d89a5
1 changed files with 8 additions and 0 deletions

View File

@ -121,9 +121,13 @@ public class DpTechAbilityImpl implements DisposeAbility {
return new MulReturnType<>(ErrorCode.ERR_UNSUPPORT, null);
}
log.debug("DpTech startAbnormalTaskForUMC request: {}, {}, {}", disposeObject, attackType, nfDirection);
NtcRequestResultInfo ret = cleanTypePort.startAbnormalTaskForUMC(disposeObject, attackType,
nfDirection.getValue());
log.debug("DpTech startAbnormalTaskForUMC response: {}", ret);
if (ret.getResultRetVal() != 0) {
err = ErrorCode.ERR_CALLDEVICE;
log.error("----Error DPTech Start Cleanup Task: {}, {}, {}, {}", disposeObject, nfDirection,
@ -169,8 +173,11 @@ public class DpTechAbilityImpl implements DisposeAbility {
return new MulReturnType<>(ErrorCode.ERR_UNSUPPORT, null);
}
log.debug("DpTech stopAbnormalTaskForUMC request: {}, {}, {}", disposeObject, attackType, nfDirection);
NtcRequestResultInfo ret = cleanTypePort.stopAbnormalTaskForUMC(disposeObject, attackType,
nfDirection.getValue());
log.debug("DpTech stopAbnormalTaskForUMC response: {}", ret);
if (ret.getResultRetVal() != 0) {
err = ErrorCode.ERR_CALLDEVICE;
@ -250,6 +257,7 @@ public class DpTechAbilityImpl implements DisposeAbility {
try {
// 读取清洗设备支持的清洗IP范围
ArrayOfProtectionObjectDataForService objs = cleanTypePort.getAllProtectionObjectFromUMC();
log.debug("DpTech getAllProtectionObjectFromUMC response: {}", objs);
// 将DPTech设备的IP格式转换成IP访问列表支持IPv6IPv4
synchronized (this) {
protectIpV4.clear();