Skip to content

Commit

Permalink
Fix the problem of formatting debug information in MManager (#2028)
Browse files Browse the repository at this point in the history
  • Loading branch information
asdf2014 committed Nov 12, 2020
1 parent 96e548c commit 420bdc3
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -533,8 +533,8 @@ private void removeFromTagInvertedIndex(MeasurementMNode node) throws IOExceptio
if (tagIndex.containsKey(entry.getKey()) && tagIndex.get(entry.getKey())
.containsKey(entry.getValue())) {
if (logger.isDebugEnabled()) {
logger.debug(String.format(DEBUG_MSG, "Delete" + TAG_FORMAT,
node.getFullPath(), entry.getKey(), entry.getValue(), node.getOffset()));
logger.debug(String.format(String.format(DEBUG_MSG, "Delete" + TAG_FORMAT,
node.getFullPath()), entry.getKey(), entry.getValue(), node.getOffset()));
}
tagIndex.get(entry.getKey()).get(entry.getValue()).remove(node);
if (tagIndex.get(entry.getKey()).get(entry.getValue()).isEmpty()) {
Expand All @@ -545,8 +545,8 @@ private void removeFromTagInvertedIndex(MeasurementMNode node) throws IOExceptio
}
} else {
if (logger.isDebugEnabled()) {
logger.debug(String.format(DEBUG_MSG_1, "Delete" + PREVIOUS_CONDITION,
node.getFullPath(), entry.getKey(), entry.getValue(), node.getOffset(),
logger.debug(String.format(String.format(DEBUG_MSG_1, "Delete" + PREVIOUS_CONDITION,
node.getFullPath()), entry.getKey(), entry.getValue(), node.getOffset(),
tagIndex.containsKey(entry.getKey())));
}
}
Expand Down

0 comments on commit 420bdc3

Please sign in to comment.