From 5e20e01acd9225fbd5c028d1808ade7848081d00 Mon Sep 17 00:00:00 2001 From: "xueli.xue" Date: Mon, 25 Jul 2016 13:13:34 +0800 Subject: [PATCH] coding --- .../src/main/java/com/xxl/job/core/util/XxlJobNetCommUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobNetCommUtil.java b/xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobNetCommUtil.java index 59cb4023..387e1d0d 100644 --- a/xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobNetCommUtil.java +++ b/xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobNetCommUtil.java @@ -90,11 +90,12 @@ public class XxlJobNetCommUtil { HttpEntity entity = response.getEntity(); if (response.getStatusLine().getStatusCode() == 200 && null != entity) { String responseHex = EntityUtils.toString(entity, "UTF-8"); - logger.debug("xxl-job, net comm success, requestHex:{}, responseHex:{}", requestHex, responseHex); + logger.info("xxl-job, net comm success, requestHex:{}, responseHex:{}", requestHex, responseHex); EntityUtils.consume(entity); // i do not know why responseHex = responseHex.replace("\n", ""); + responseHex = responseHex.replace("\r", ""); // parse hex-json to ResponseModel ResponseModel responseModel = XxlJobNetCommUtil.parseHexJson2Obj(responseHex, ResponseModel.class);