private void logParams(Request<?> request) { if (!OpenApi.DEBUG) return; try { StringBuffer sb = new StringBuffer(); sb.append(request.getUrl()).append("?"); Map<String, String> postdata = request.getParams(); if (postdata == null) return; Utils.Log( "URL_METHOD", postdata.get(OpenApi.API_METHOD) == null ? "" : postdata.get(OpenApi.API_METHOD).toString()); ; for (Map.Entry<String, String> item : postdata.entrySet()) { sb.append("").append(item.getKey()).append("=").append(item.getValue()).append("&"); Utils.Log("URL_PARAM", item.getKey() + "=" + item.getValue()); } Utils.Log("URL", sb.toString()); } catch (Exception e) { e.printStackTrace(); } }