线程类增加异常捕获,日志记录
This commit is contained in:
@@ -7,6 +7,7 @@ import com.nis.domain.configuration.IpPortCfg;
|
||||
import com.nis.domain.maat.MaatCfg;
|
||||
import com.nis.util.ConfigConvertUtil;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
|
||||
import java.util.Date;
|
||||
@@ -15,6 +16,7 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
public class ObjGroupCfgConvert implements Runnable{
|
||||
private static final Logger logger= Logger.getLogger(ObjGroupCfgConvert.class);
|
||||
private CfgIndexInfo cfgIndexInfo;
|
||||
private Integer isAudit;
|
||||
private Map<Integer, FunctionServiceDict> serviceDictMap;
|
||||
@@ -37,6 +39,7 @@ public class ObjGroupCfgConvert implements Runnable{
|
||||
}
|
||||
@Override
|
||||
public void run() {
|
||||
try{
|
||||
//IP公共分组
|
||||
if("ipGroup".equalsIgnoreCase(groupName)&& CollectionUtils.isNotEmpty(cfgIndexInfo.getIpCommGroupCfgList())){
|
||||
IpPortCfg cfg = new IpPortCfg();
|
||||
@@ -107,6 +110,9 @@ public class ObjGroupCfgConvert implements Runnable{
|
||||
strRegionList=map.get("dstList");
|
||||
}
|
||||
}
|
||||
}catch (Throwable e){
|
||||
logger.error("ObjGroupCfgConvert failed",e);
|
||||
}
|
||||
}
|
||||
|
||||
public List<MaatCfg.GroupCfg> getGroupRelationList() {
|
||||
|
||||
Reference in New Issue
Block a user