欧阳劲驰 1 месяц назад
Родитель
Сommit
d8dfe271e1

+ 8 - 2
custom-gateway-core/src/main/java/com/shkpr/service/customgateway/core/utils/CallingUtil.java

@@ -104,10 +104,13 @@ public class CallingUtil {
             if (!result.isOk()) throw new SelfException(ResponseCode.RESULT_BAD.getCode() + "", result.getMessage());
 
             //返回数据
+            LogPrintMgr.getInstance().printLogMsg(LogLevelFlag.LOG_ERROR, mBizType, mStrClassName
+                    , String.format("请求成功:%s", result)
+            );
             return result.getData();
         } catch (IOException e) {
             LogPrintMgr.getInstance().printLogMsg(LogLevelFlag.LOG_ERROR, mBizType, mStrClassName
-                    , String.format("拉取数据失败 error:%s", e)
+                    , String.format("请求失败 error:%s", e)
             );
             return null;
         }
@@ -171,6 +174,9 @@ public class CallingUtil {
                 //解析结果
                 R result = objectMapper.readValue(response.returnContent().toString(), resultType);
                 if (!result.isOk()) throw new SelfException(ResponseCode.RESULT_BAD.getCode() + "", result.getMessage());
+                LogPrintMgr.getInstance().printLogMsg(LogLevelFlag.LOG_ERROR, mBizType, mStrClassName
+                        , String.format("请求成功:%s", result)
+                );
 
                 //解析当前页,并存入数据
                 P page = result.getData();
@@ -184,7 +190,7 @@ public class CallingUtil {
             }
         } catch (IOException e) {
             LogPrintMgr.getInstance().printLogMsg(LogLevelFlag.LOG_ERROR, mBizType, mStrClassName
-                    , String.format("拉取拉去数据失败 error:%s", e)
+                    , String.format("请求失败 error:%s", e)
             );
             return Collections.emptyList();
         }