changfubai commented on a change in pull request #9053:
URL: https://github.com/apache/dubbo/pull/9053#discussion_r732409209
##########
File path:
dubbo-common/src/main/java/org/apache/dubbo/rpc/model/ServiceModel.java
##########
@@ -110,8 +121,11 @@ public AbstractInterfaceConfig getConfig() {
if (config instanceof ReferenceConfigBase) {
return (ReferenceConfigBase<?>) config;
} else {
- throw new IllegalArgumentException("Current ServiceModel is not a
ConsumerModel");
+ if (log.isErrorEnabled()) {
Review comment:
log.isErrorEnabled() 不用加吧,没有需要运算和拼接的地方耶
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]