Browse Source

调整第三方接口调用异常输出日志

FanQun 2 years ago
parent
commit
8ba5d1950a
1 changed files with 8 additions and 8 deletions
  1. 8 8
      src/main/java/com/rshy/project/hy/server/ItfwServer.java

+ 8 - 8
src/main/java/com/rshy/project/hy/server/ItfwServer.java

@@ -141,7 +141,7 @@ public class ItfwServer {
             if (times(cacheStatusKey) > WebConstant.TIMEOUT_TIMES) {
                 stringRedisTemplate.opsForValue().set(cacheStatusKey, cacheStatusKey, WebConstant.STATUS_TIMEOUT, TimeUnit.MINUTES);
             }
-            log.error("请求重点人员服务接口超时异常:{} {}", e.getMessage(), e.getLocalizedMessage());
+            log.error("请求重点人员服务接口超时异常:{}", e.getMessage());
             e.printStackTrace();
             return null;
         }
@@ -199,7 +199,7 @@ public class ItfwServer {
             if (times(cacheStatusKey) > WebConstant.TIMEOUT_TIMES) {
                 stringRedisTemplate.opsForValue().set(cacheStatusKey, cacheStatusKey, WebConstant.STATUS_TIMEOUT, TimeUnit.MINUTES);
             }
-            log.error("请求人员劣迹服务接口超时异常:{} {}", e.getMessage(), e.getLocalizedMessage());
+            log.error("请求人员劣迹服务接口异常:{}", e.getMessage());
             e.printStackTrace();
             return null;
         }
@@ -257,7 +257,7 @@ public class ItfwServer {
             if (times(cacheStatusKey) > WebConstant.TIMEOUT_TIMES) {
                 stringRedisTemplate.opsForValue().set(cacheStatusKey, cacheStatusKey, WebConstant.STATUS_TIMEOUT, TimeUnit.MINUTES);
             }
-            log.error("请求执法办案服务接口超时异常:{} {}", e.getMessage(), e.getLocalizedMessage());
+            log.error("请求执法办案服务接口异常:{}", e.getMessage());
             e.printStackTrace();
             return null;
         }
@@ -317,7 +317,7 @@ public class ItfwServer {
             if (times(cacheStatusKey) > WebConstant.TIMEOUT_TIMES) {
                 stringRedisTemplate.opsForValue().set(cacheStatusKey, cacheStatusKey, WebConstant.STATUS_TIMEOUT, TimeUnit.MINUTES);
             }
-            log.error("请求打防控信息服务接口超时异常:{} {}", e.getMessage(), e.getLocalizedMessage());
+            log.error("请求打防控信息服务接口异常:{}", e.getMessage());
             e.printStackTrace();
             return null;
         }
@@ -375,7 +375,7 @@ public class ItfwServer {
             if (times(cacheStatusKey) > WebConstant.TIMEOUT_TIMES) {
                 stringRedisTemplate.opsForValue().set(cacheStatusKey, cacheStatusKey, WebConstant.STATUS_TIMEOUT, TimeUnit.MINUTES);
             }
-            log.error("请求监所人员服务接口超时异常:{} {}", e.getMessage(), e.getLocalizedMessage());
+            log.error("请求监所人员服务接口异常:{}", e.getMessage());
             e.printStackTrace();
             return null;
         }
@@ -436,7 +436,7 @@ public class ItfwServer {
             if (times(cacheStatusKey) > WebConstant.TIMEOUT_TIMES) {
                 stringRedisTemplate.opsForValue().set(cacheStatusKey, cacheStatusKey, WebConstant.STATUS_TIMEOUT, TimeUnit.MINUTES);
             }
-            log.error("请求吸毒人员服务接口超时异常:{} {}", e.getMessage(), e.getLocalizedMessage());
+            log.error("请求吸毒人员服务接口异常:{}", e.getMessage());
             e.printStackTrace();
             return null;
         }
@@ -496,7 +496,7 @@ public class ItfwServer {
             if (times(cacheStatusKey) > WebConstant.TIMEOUT_TIMES) {
                 stringRedisTemplate.opsForValue().set(cacheStatusKey, cacheStatusKey, WebConstant.STATUS_TIMEOUT, TimeUnit.MINUTES);
             }
-            log.error("请求前科人员服务接口超时异常:{} {}", e.getMessage(), e.getLocalizedMessage());
+            log.error("请求前科人员服务接口异常:{}", e.getMessage());
             e.printStackTrace();
             return null;
         }
@@ -583,7 +583,7 @@ public class ItfwServer {
                 stringRedisTemplate.opsForValue().set(cacheStatusKey, cacheStatusKey, WebConstant.STATUS_TIMEOUT, TimeUnit.MINUTES);
             }
 
-            log.error("请求人车核录服务接口超时异常:{} {}", e.getMessage(), e.getLocalizedMessage());
+            log.error("请求人车核录服务接口异常:{}", e.getMessage());
             e.printStackTrace();
             return null;
         }