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 2021/06/21 02:17:45 UTC
[dubbo] branch master updated: EventPublishingServiceDiscovery add
error log (#8066)
This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new 271921a EventPublishingServiceDiscovery add error log (#8066)
271921a is described below
commit 271921acd5c4b861004452ac1237d273a5a3f8d4
Author: Roshi <lk...@163.com>
AuthorDate: Mon Jun 21 10:16:56 2021 +0800
EventPublishingServiceDiscovery add error log (#8066)
* add error log
* commit
Co-authored-by: roshilikang <ro...@didiglobal.com>
---
.../apache/dubbo/registry/client/EventPublishingServiceDiscovery.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/EventPublishingServiceDiscovery.java b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/EventPublishingServiceDiscovery.java
index b872199..1bd3e94 100644
--- a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/EventPublishingServiceDiscovery.java
+++ b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/EventPublishingServiceDiscovery.java
@@ -284,6 +284,7 @@ final class EventPublishingServiceDiscovery implements ServiceDiscovery {
try {
action.execute();
} catch (Throwable e) {
+ logger.error("Execute action throws and dispatch a ServiceDiscoveryExceptionEvent.", e);
dispatchEvent(new ServiceDiscoveryExceptionEvent(this, serviceDiscovery, e));
}
afterEvent.ifPresent(this::dispatchEvent);