xueli.xue 8 years ago
parent
commit
5e20e01acd

+ 2 - 1
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);