Skip to content

Commit

Permalink
replace Thread.dumpStack() to write stack traces to log files
Browse files Browse the repository at this point in the history
woodser committed Jan 14, 2025
1 parent 2f32267 commit 6301bde
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions core/src/main/java/haveno/core/api/XmrConnectionService.java
Original file line number Diff line number Diff line change
@@ -654,8 +654,7 @@ private void maybeStartLocalNode() {
private void onConnectionChanged(MoneroRpcConnection currentConnection) {
if (isShutDownStarted || !accountService.isAccountOpen()) return;
if (currentConnection == null) {
log.warn("Setting daemon connection to null");
Thread.dumpStack();
log.warn("Setting daemon connection to null", new Throwable("Stack trace"));
}
synchronized (lock) {
if (currentConnection == null) {
Original file line number Diff line number Diff line change
@@ -211,10 +211,9 @@ private synchronized void sendDepositResponsesOnce(String errorMessage) {

// log error
if (errorMessage != null) {
log.warn("Sending deposit responses with error={}", errorMessage);
Thread.dumpStack();
log.warn("Sending deposit responses with error={}", errorMessage, new Throwable("Stack trace"));
}

// create deposit response
DepositResponse response = new DepositResponse(
trade.getOffer().getId(),

0 comments on commit 6301bde

Please sign in to comment.