This is an automated email from the ASF dual-hosted git repository. ningjiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git
The following commit(s) were added to refs/heads/master by this push: new 37c483b Added a info log when alpha cannot find the service instance for componsation 37c483b is described below commit 37c483b4d3c9807c7ee2c72a325250666bb7b662 Author: Willem Jiang <jiangni...@huawei.com> AuthorDate: Mon Aug 13 11:41:37 2018 +0800 Added a info log when alpha cannot find the service instance for componsation --- .../apache/servicecomb/saga/alpha/core/CompositeOmegaCallback.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/alpha/alpha-core/src/main/java/org/apache/servicecomb/saga/alpha/core/CompositeOmegaCallback.java b/alpha/alpha-core/src/main/java/org/apache/servicecomb/saga/alpha/core/CompositeOmegaCallback.java index 32e5102..54e78f7 100644 --- a/alpha/alpha-core/src/main/java/org/apache/servicecomb/saga/alpha/core/CompositeOmegaCallback.java +++ b/alpha/alpha-core/src/main/java/org/apache/servicecomb/saga/alpha/core/CompositeOmegaCallback.java @@ -19,9 +19,14 @@ package org.apache.servicecomb.saga.alpha.core; import static java.util.Collections.emptyMap; +import java.lang.invoke.MethodHandles; import java.util.Map; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + public class CompositeOmegaCallback implements OmegaCallback { + private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); private final Map<String, Map<String, OmegaCallback>> callbacks; public CompositeOmegaCallback(Map<String, Map<String, OmegaCallback>> callbacks) { @@ -38,6 +43,7 @@ public class CompositeOmegaCallback implements OmegaCallback { OmegaCallback omegaCallback = serviceCallbacks.get(event.instanceId()); if (omegaCallback == null) { + LOG.info("Cannot find the service with the instanceId {}, call the other instance.", event.instanceId()); omegaCallback = serviceCallbacks.values().iterator().next(); }