Skip to content

Commit

Permalink
Update TreeLock.java
Browse files Browse the repository at this point in the history
add trace log judge
  • Loading branch information
YxAc authored Feb 18, 2024
1 parent 12e9bb6 commit 40a61b9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ public void lock(LockType lockType) {
try {
treeLockNode.lock(type);
heldLocks.push(Pair.of(treeLockNode, type));
LOG.trace("Locked node: {}, lock type: {}", treeLockNode, type);
if (LOG.isTraceEnabled()) {
LOG.trace("Locked node: {}, lock type: {}", treeLockNode, type);
}
} catch (Exception e) {
LOG.error(
"Failed to lock the treeNode, identifier: {}, node {} of lockNodes: [{}]",
Expand Down

0 comments on commit 40a61b9

Please sign in to comment.