From 1e2090b44eafb296977b32f6c2b1e5da250f21b2 Mon Sep 17 00:00:00 2001 From: roshilikang Date: Wed, 16 Jun 2021 17:01:18 +0800 Subject: [PATCH 1/2] add error log --- .../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 b872199364b..6fe6412423f 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 @@ protected final void executeWithEvents(Optional beforeEvent, 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); From 1a7009248c5625de559c21c8db70a411c2e1f9af Mon Sep 17 00:00:00 2001 From: roshilikang Date: Wed, 16 Jun 2021 17:39:07 +0800 Subject: [PATCH 2/2] commit --- .../dubbo/registry/client/EventPublishingServiceDiscovery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6fe6412423f..1bd3e94c195 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,7 +284,7 @@ protected final void executeWithEvents(Optional beforeEvent, try { action.execute(); } catch (Throwable e) { - logger.error("Execute action throws and dispatch a ServiceDiscoveryExceptionEvent", e); + logger.error("Execute action throws and dispatch a ServiceDiscoveryExceptionEvent.", e); dispatchEvent(new ServiceDiscoveryExceptionEvent(this, serviceDiscovery, e)); } afterEvent.ifPresent(this::dispatchEvent);