Commit 5abd5ff7 authored by jim's avatar jim

log

parent 14a3bcd4
......@@ -86,13 +86,15 @@ public class Trans {
HttpEntity entry = response.getEntity();
return EntityUtils.toString(entry, Charsets.UTF_8);
} catch (ClientProtocolException e) {
logger.error(e.getMessage(), e);
logger.error("ClientProtocolException");
return "";
} catch (IOException e) {
logger.error(e.getMessage(), e);
// logger.error(e.getMessage(), e);
logger.error("IOException");
return "";
} catch (Exception e) {
logger.error(e.getMessage(), e);
// logger.error(e.getMessage(), e);
logger.error("Exception");
return "";
} finally {
httpGet.releaseConnection();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment