|
@@ -46,8 +46,6 @@ public class PigxFeignFallback<T> implements MethodInterceptor {
|
|
@Nullable
|
|
@Nullable
|
|
@Override
|
|
@Override
|
|
public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy) throws Throwable {
|
|
public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy) throws Throwable {
|
|
- String errorMessage = cause.getMessage();
|
|
|
|
- log.error("PigxFeignFallback:[{}.{}] serviceId:[{}] message:[{}]", targetType.getName(), method.getName(), targetName, errorMessage);
|
|
|
|
Class<?> returnType = method.getReturnType();
|
|
Class<?> returnType = method.getReturnType();
|
|
if (R.class != returnType) {
|
|
if (R.class != returnType) {
|
|
return null;
|
|
return null;
|
|
@@ -58,6 +56,7 @@ public class PigxFeignFallback<T> implements MethodInterceptor {
|
|
|
|
|
|
String str = StrUtil.str(content, StandardCharsets.UTF_8);
|
|
String str = StrUtil.str(content, StandardCharsets.UTF_8);
|
|
|
|
|
|
|
|
+ log.error("PigxFeignFallback:[{}.{}] serviceId:[{}] message:[{}]", targetType.getName(), method.getName(), targetName, str);
|
|
return R.builder().code(CommonConstants.FAIL)
|
|
return R.builder().code(CommonConstants.FAIL)
|
|
.msg(str).build();
|
|
.msg(str).build();
|
|
}
|
|
}
|