From 6301bde10eaee0f1920637ff7d1f6e8c200d9e30 Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 14 Jan 2025 07:33:48 -0500 Subject: [PATCH] replace Thread.dumpStack() to write stack traces to log files --- core/src/main/java/haveno/core/api/XmrConnectionService.java | 3 +-- .../protocol/tasks/ArbitratorProcessDepositRequest.java | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/haveno/core/api/XmrConnectionService.java b/core/src/main/java/haveno/core/api/XmrConnectionService.java index 664daaca8a..2ffcc95d65 100644 --- a/core/src/main/java/haveno/core/api/XmrConnectionService.java +++ b/core/src/main/java/haveno/core/api/XmrConnectionService.java @@ -654,8 +654,7 @@ public final class XmrConnectionService { 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) { diff --git a/core/src/main/java/haveno/core/trade/protocol/tasks/ArbitratorProcessDepositRequest.java b/core/src/main/java/haveno/core/trade/protocol/tasks/ArbitratorProcessDepositRequest.java index 5bd7ab9d80..be9d528f35 100644 --- a/core/src/main/java/haveno/core/trade/protocol/tasks/ArbitratorProcessDepositRequest.java +++ b/core/src/main/java/haveno/core/trade/protocol/tasks/ArbitratorProcessDepositRequest.java @@ -211,10 +211,9 @@ public class ArbitratorProcessDepositRequest extends TradeTask { // 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(),