Skip to content

Commit

Permalink
[improve][ML] Print log when delete empty ledger. (apache#17859)
Browse files Browse the repository at this point in the history
(cherry picked from commit 716f5e2)
(cherry picked from commit 36556a1)
  • Loading branch information
mattisonchao authored and nicoloboschi committed Dec 6, 2022
1 parent dc27da4 commit 9fc3f11
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,7 @@ private synchronized void initializeBookKeeper(final ManagedLedgerInitializeLedg
} else {
iterator.remove();
bookKeeper.asyncDeleteLedger(li.getLedgerId(), (rc, ctx) -> {
if (log.isDebugEnabled()) {
log.debug("[{}] Deleted empty ledger ledgerId={} rc={}", name, li.getLedgerId(), rc);
}
log.info("[{}] Deleted empty ledger ledgerId={} rc={}", name, li.getLedgerId(), rc);
}, null);
}
}
Expand Down

0 comments on commit 9fc3f11

Please sign in to comment.