修改一个日志不正确的问题。

This commit is contained in:
wusheng 2016-04-08 09:12:57 +08:00
parent 9bb6067f99
commit 602d48367f
1 changed files with 2 additions and 2 deletions

View File

@ -27,9 +27,9 @@ public class Chain {
chains.get(index++).doChain(spans, this);
break;
} catch (Throwable e) {
logger.error("do chain at index[{}] failure.", index, e);
logger.error("do chain at index[" + (index - 1) + "] failure.", e);
ServerHealthCollector.getCurrentHeathReading("storage-chain").updateData(ServerHeathReading.ERROR,
"Failed to do chain action. spans list hash code:" + spans.hashCode() + ",Cause:" + e.getMessage());
"do chain at index[" + (index - 1) + "] failure. spans list hash code:" + spans.hashCode() + ",Cause:" + e.getMessage());
// 如果Chain出现任何异常将重做Chain,保证数据不丢失
index--;
}