You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2022/02/06 04:32:07 UTC
[dubbo] branch 3.0 updated: [3.0] Add some log when failed to get return types (#9618)
This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.0 by this push:
new 7474093 [3.0] Add some log when failed to get return types (#9618)
7474093 is described below
commit 74740932654669c7cc165db4e34d99b3ee90b277
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Sun Feb 6 12:31:58 2022 +0800
[3.0] Add some log when failed to get return types (#9618)
---
.../src/main/java/org/apache/dubbo/rpc/model/MethodDescriptor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dubbo-common/src/main/java/org/apache/dubbo/rpc/model/MethodDescriptor.java b/dubbo-common/src/main/java/org/apache/dubbo/rpc/model/MethodDescriptor.java
index 03e9846..65e24c9 100644
--- a/dubbo-common/src/main/java/org/apache/dubbo/rpc/model/MethodDescriptor.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/rpc/model/MethodDescriptor.java
@@ -99,7 +99,7 @@ public class MethodDescriptor {
try {
returnTypesResult = ReflectUtils.getReturnTypes(method);
} catch (Throwable throwable) {
- logger.error("fail to get return types", throwable);
+ logger.error("fail to get return types. Method name: " + methodName + " Declaring class:" + method.getDeclaringClass().getName(), throwable);
returnTypesResult = new Type[]{returnClass, returnClass};
}