Skip to content

Commit

Permalink
EventPublishingServiceDiscovery add error log (#8066)
Browse files Browse the repository at this point in the history
* add error log

* commit

Co-authored-by: roshilikang <roshilikang@didiglobal.com>
  • Loading branch information
lkxiaolou and roshilikang committed Jun 21, 2021
1 parent 1c6e042 commit 271921a
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -284,6 +284,7 @@ protected final void executeWithEvents(Optional<? extends Event> 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);
Expand Down

0 comments on commit 271921a

Please sign in to comment.