Skip to content

Commit 00085a0

Browse files
Revert "Add stack trace to start of pruning debug log to debug source of multiple calls per expected call"
This reverts commit c197b1e.
1 parent 5695fe8 commit 00085a0

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

ethereum/core/src/main/java/org/hyperledger/besu/ethereum/chain/ChainDataPruner.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,6 @@ private void chainPrunerAction(final BlockAddedEvent event) {
113113
}
114114

115115
private void preMergePruningAction() {
116-
StringBuilder sb = new StringBuilder();
117-
for (StackTraceElement element : Thread.currentThread().getStackTrace()) {
118-
sb.append(element.toString());
119-
sb.append("\n");
120-
}
121-
final String originatingStackTrace = sb.toString();
122116
pruningExecutor.submit(
123117
() -> {
124118
try {
@@ -127,10 +121,7 @@ private void preMergePruningAction() {
127121
final long expectedNewPruningMark =
128122
Math.min(storedPruningMark + pruningQuantity, mergeBlock);
129123
LOG.debug(
130-
"Attempting to prune blocks {} to {}. Started from \n{}",
131-
storedPruningMark,
132-
expectedNewPruningMark,
133-
originatingStackTrace);
124+
"Attempting to prune blocks {} to {}", storedPruningMark, expectedNewPruningMark);
134125
final KeyValueStorageTransaction pruningTransaction = prunerStorage.startTransaction();
135126
final BlockchainStorage.Updater updater = blockchainStorage.updater();
136127
for (long blockNumber = storedPruningMark;

0 commit comments

Comments
 (0)