|
@@ -24,6 +24,7 @@ public class PoemsFeignExceptionHandler {
|
|
|
|
|
|
@AfterReturning(pointcut = "pointCutMethod()", returning = "res")
|
|
|
public void process(Object res) {
|
|
|
+ log.info("feign调用接口,返回结果:{}", res);
|
|
|
String result = null;
|
|
|
String reason = null;
|
|
|
if (res instanceof PoemsFeignResponse) {
|
|
@@ -40,7 +41,6 @@ public class PoemsFeignExceptionHandler {
|
|
|
|
|
|
String success = "success";
|
|
|
if (!success.equals(result)) {
|
|
|
- log.error("feign调用接口失败,返回结果为:{}", res);
|
|
|
throw new RpcException(reason);
|
|
|
}
|
|
|
}
|