Commit a09bd024 authored by duanruiming's avatar duanruiming

[add] 优化海信推送灯态异常处理

parent 80cc4f8d
...@@ -264,12 +264,12 @@ public class SignalStatusServiceImpl implements SignalStatusService { ...@@ -264,12 +264,12 @@ public class SignalStatusServiceImpl implements SignalStatusService {
try { try {
OkHttpClientUtil.jsonPost(shensiUrl, jackson.writeValueAsString(hisenseLightStatusPojos)); OkHttpClientUtil.jsonPost(shensiUrl, jackson.writeValueAsString(hisenseLightStatusPojos));
} catch (Exception e) { } catch (Exception e) {
log.error("海信灯态推送百度失败:{}", e); log.error("海信灯态推送神思失败:{}", e.getMessage());
} }
try { try {
OkHttpClientUtil.jsonPost(baiduUrl, jackson.writeValueAsString(hisenseLightStatusPojos)); OkHttpClientUtil.jsonPost(baiduUrl, jackson.writeValueAsString(hisenseLightStatusPojos));
} catch (Exception e) { } catch (Exception e) {
log.error("海信灯态推送百度失败:{}", e); log.error("海信灯态推送百度失败:{}", e.getMessage());
} }
} }
......
...@@ -65,7 +65,7 @@ public class OkHttpClientUtil { ...@@ -65,7 +65,7 @@ public class OkHttpClientUtil {
return responseString; return responseString;
} }
} catch (Exception e) { } catch (Exception e) {
log.error("OkHttpClientUtil远程服务url:{}, 调用异常:{}", url, e); log.error("OkHttpClientUtil远程服务url:{}, 调用异常:{}", url, e.getMessage());
throw new Exception(); throw new Exception();
} }
return null; return null;
......
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