Commit 4d865d7b433025cbfaba3cdfd62c6c5fc2a3d438
1 parent
b7a3ac82
GpsController中,误点提示服务错误stack信息不输出到日志(服务器空间有限)
Showing
1 changed file
with
7 additions
and
6 deletions
src/main/java/com/bsth/controller/gps/GpsController.java
| @@ -76,12 +76,13 @@ public class GpsController { | @@ -76,12 +76,13 @@ public class GpsController { | ||
| 76 | Map<String, VehicleArrivalStopRealMonitorDto> arrivalStopRealMonitorMap = new HashMap<>(); | 76 | Map<String, VehicleArrivalStopRealMonitorDto> arrivalStopRealMonitorMap = new HashMap<>(); |
| 77 | if (lateReminderServiceFacade == null) { | 77 | if (lateReminderServiceFacade == null) { |
| 78 | LOG.warn("LateReminderServiceFacade服务未导入,请检查dubbo相关配置!"); | 78 | LOG.warn("LateReminderServiceFacade服务未导入,请检查dubbo相关配置!"); |
| 79 | - } | ||
| 80 | - try { | ||
| 81 | - // 按照车牌作为key,映射map | ||
| 82 | - arrivalStopRealMonitorMap.putAll(lateReminderServiceFacade.getVehicleArrivalStopRealMonitorInfo_cph(lineArray)); | ||
| 83 | - } catch (Exception exp) { | ||
| 84 | - LOG.warn("LateReminderServiceFacade远端调用异常,请检查dubbo服务部署情况!", exp); | 79 | + } else { |
| 80 | + try { | ||
| 81 | + // 按照车牌作为key,映射map | ||
| 82 | + arrivalStopRealMonitorMap.putAll(lateReminderServiceFacade.getVehicleArrivalStopRealMonitorInfo_cph(lineArray)); | ||
| 83 | + } catch (Exception exp) { | ||
| 84 | + LOG.warn("LateReminderServiceFacade远端调用异常,请检查dubbo服务部署情况!message={}", exp.getLocalizedMessage()); | ||
| 85 | + } | ||
| 85 | } | 86 | } |
| 86 | 87 | ||
| 87 | rs.put("gpsList", gpsList); | 88 | rs.put("gpsList", gpsList); |