From 9b873cf1492cf9c54b908628fc35d419d466b221 Mon Sep 17 00:00:00 2001 From: woodser Date: Fri, 18 Aug 2023 11:45:53 -0400 Subject: [PATCH] remove password from logging --- .../main/java/haveno/core/api/CoreMoneroConnectionsService.java | 2 +- core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/haveno/core/api/CoreMoneroConnectionsService.java b/core/src/main/java/haveno/core/api/CoreMoneroConnectionsService.java index 25753194..0b10b138 100644 --- a/core/src/main/java/haveno/core/api/CoreMoneroConnectionsService.java +++ b/core/src/main/java/haveno/core/api/CoreMoneroConnectionsService.java @@ -357,7 +357,7 @@ public final class CoreMoneroConnectionsService { @Override public void onPasswordChanged(String oldPassword, String newPassword) { - log.info(getClass() + ".onPasswordChanged({}, {}) called", oldPassword, newPassword); + log.info(getClass() + ".onPasswordChanged({}, {}) called", oldPassword == null ? null : "***", newPassword == null ? null : "***"); connectionList.changePassword(oldPassword, newPassword); } }); diff --git a/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java b/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java index 0e869b59..12d1798f 100644 --- a/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java +++ b/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java @@ -904,6 +904,7 @@ public class XmrWalletService { // excute tasks in parallel HavenoUtils.executeTasks(tasks, Math.min(10, 1 + trades.size())); + log.info("Done changing all wallet passwords"); } private void closeMainWallet(boolean save) {