发送审核请求时将请求json打印到日志

This commit is contained in:
chenjinsong
2018-03-26 18:21:14 +08:00
parent 3a51c0ca20
commit b631b890fd

View File

@@ -37,7 +37,7 @@ public class DnsIpCfgService extends CrudService<DnsIpCfgDao, DnsIpCfg>{
ipCfgList.add(ipCfg);
toMaatBean.setServiceCfg(ipCfgList);
String sendJson = gson.toJson(toMaatBean);
logger.info("准备下发配置:" + sendJson);
//下发配置、接收结果
String recvJson = "";
try {
@@ -79,6 +79,7 @@ public class DnsIpCfgService extends CrudService<DnsIpCfgDao, DnsIpCfg>{
//给配置转换层发送、接收结果
String sendJson = "{\"fakeId\":[" + cfgIds + "]}";
logger.info("准备下发配置:" + sendJson);
Boolean recv = true;
try {
recv = new ConvertTool().invalidDNSIPConfig(sendJson);