mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-04-23 02:48:34 +08:00
fix 修复 dubbo 日志输出异常判断错误
This commit is contained in:
@@ -67,8 +67,8 @@ public class DubboRequestFilter implements Filter {
|
|||||||
Result result = invoker.invoke(invocation);
|
Result result = invoker.invoke(invocation);
|
||||||
// 计算调用耗时
|
// 计算调用耗时
|
||||||
long elapsed = System.currentTimeMillis() - startTime;
|
long elapsed = System.currentTimeMillis() - startTime;
|
||||||
// 如果发生异常且调用的是泛化服务,则记录异常日志
|
// 如果发生异常且调用的不是泛化服务,则记录异常日志
|
||||||
if (result.hasException() && invoker.getInterface().equals(GenericService.class)) {
|
if (result.hasException() && !invoker.getInterface().equals(GenericService.class)) {
|
||||||
log.error("DUBBO - 服务异常: {},Exception={}", baselog, result.getException());
|
log.error("DUBBO - 服务异常: {},Exception={}", baselog, result.getException());
|
||||||
} else {
|
} else {
|
||||||
// 根据日志级别输出服务响应信息
|
// 根据日志级别输出服务响应信息
|
||||||
|
|||||||
Reference in New Issue
Block a user