|
@@ -266,7 +266,7 @@ public class HttpUtil {
|
|
|
if ("GET".equalsIgnoreCase(requestMethod))
|
|
|
httpUrlConn.connect();
|
|
|
|
|
|
- log.info("url[{}],send[{}]",url,outputStr);
|
|
|
+ log.info("url[{}],send[{}]",url,JSONObject.toJSONString(outputStr));
|
|
|
|
|
|
if (null != outputStr) {
|
|
|
OutputStream outputStream = httpUrlConn.getOutputStream();
|
|
@@ -294,7 +294,7 @@ public class HttpUtil {
|
|
|
inputStream = null;
|
|
|
httpUrlConn.disconnect();
|
|
|
String result = buffer.toString();
|
|
|
- log.info("receive[{}],send[{}]", result,outputStr);
|
|
|
+ log.info("receive[{}],send[{}]", result,JSONObject.toJSONString(outputStr));
|
|
|
jsonresult = JSONObject.parseObject(result, JSONResult.class);
|
|
|
} catch (ConnectException ce) {
|
|
|
log.error("发生错误", ce);
|