From 1a24bd2ba06e483e032cd75ba4895455ac76479a Mon Sep 17 00:00:00 2001 From: HenrikJannsen Date: Fri, 30 Dec 2022 13:42:51 -0500 Subject: [PATCH] Add error log at initialize --- .../java/bisq/application/DefaultApplicationService.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application/src/main/java/bisq/application/DefaultApplicationService.java b/application/src/main/java/bisq/application/DefaultApplicationService.java index 94c452b72c..9aca930a0b 100644 --- a/application/src/main/java/bisq/application/DefaultApplicationService.java +++ b/application/src/main/java/bisq/application/DefaultApplicationService.java @@ -125,7 +125,13 @@ public DefaultApplicationService(String[] args) { public CompletableFuture initialize() { return securityService.initialize() .thenCompose(result -> walletService.initialize()) - .whenComplete((r, t) -> setState(State.START_NETWORK)) + .whenComplete((result, throwable) -> { + if (throwable == null) { + setState(State.START_NETWORK); + } else { + log.error("Error at walletService.initialize", throwable); + } + }) .thenCompose(result -> networkService.initialize()) .whenComplete((r, t) -> setState(State.NETWORK_STARTED)) .thenCompose(result -> identityService.initialize())