Commit 49c60c29 authored by renjie's avatar renjie

健康检查bug

parent 8d9e4aae
...@@ -93,7 +93,7 @@ public class Trans { ...@@ -93,7 +93,7 @@ public class Trans {
} }
br.close(); br.close();
} }
return sb.toString();
} catch (ClientProtocolException e) { } catch (ClientProtocolException e) {
NotifyUtils.sendMessage("防关联浏览器 ip " + host + " 代理异常", e, NotifyUtils.MsgType.WEBHOOK); NotifyUtils.sendMessage("防关联浏览器 ip " + host + " 代理异常", e, NotifyUtils.MsgType.WEBHOOK);
logger.error(e.getMessage(), e); logger.error(e.getMessage(), e);
...@@ -102,11 +102,10 @@ public class Trans { ...@@ -102,11 +102,10 @@ public class Trans {
NotifyUtils.sendMessage("防关联浏览器 ip " + host + " 代理异常", e, NotifyUtils.MsgType.WEBHOOK); NotifyUtils.sendMessage("防关联浏览器 ip " + host + " 代理异常", e, NotifyUtils.MsgType.WEBHOOK);
logger.error(e.getMessage(), e); logger.error(e.getMessage(), e);
return ""; return "";
} catch (Exception e) { } finally {
NotifyUtils.sendMessage("防关联浏览器 ip " + host + " 代理异常", e, NotifyUtils.MsgType.WEBHOOK); httpGet.releaseConnection();
logger.error(e.getMessage(), e); NotifyUtils.sendMessage("防关联浏览器 ip " + host + " 代理超时", NotifyUtils.MsgType.WEBHOOK);
return "";
} }
return sb.toString();
} }
} }
\ No newline at end of file
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