From f4f3898dcbf3458e864b61981e98b3faf1e037d6 Mon Sep 17 00:00:00 2001 From: Sean Gilligan Date: Fri, 7 Jul 2023 10:54:29 -0700 Subject: [PATCH] Verbose logging for Issue #229 * logging.properties: increase verbosity in 3 packages * OmniClient.java: log results of omniGetBalance calls --- .../src/main/java/foundation/omni/rpc/OmniClient.java | 4 +++- omnij-rpc/src/integ/logging.properties | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/omnij-jsonrpc/src/main/java/foundation/omni/rpc/OmniClient.java b/omnij-jsonrpc/src/main/java/foundation/omni/rpc/OmniClient.java index 67c94ed2..8a247b45 100644 --- a/omnij-jsonrpc/src/main/java/foundation/omni/rpc/OmniClient.java +++ b/omnij-jsonrpc/src/main/java/foundation/omni/rpc/OmniClient.java @@ -206,7 +206,9 @@ public List> omniGetActiveDExSells() throws JsonRpcException */ public BalanceEntry omniGetBalance(Address address, CurrencyID currency) throws JsonRpcException, IOException { - return send("omni_getbalance", BalanceEntry.class, address, currency.getValue()); + var result = send("omni_getbalance", BalanceEntry.class, address, currency.getValue()); + log.info("omni_getbalance result for {}, {}: {}", address, currency, result); + return result; } /** diff --git a/omnij-rpc/src/integ/logging.properties b/omnij-rpc/src/integ/logging.properties index 2dd2a5d2..97044d2e 100644 --- a/omnij-rpc/src/integ/logging.properties +++ b/omnij-rpc/src/integ/logging.properties @@ -11,3 +11,7 @@ org.consensusj.jsonrpc.level=WARNING # Set bitcoinj log level to WARNING to avoid "Creating bitcoinj 0.14.3 context" INFO message org.bitcoinj.core.level=WARNING +foundation.omni.rpc=FINEST + +foundation.omni.test=FINEST +foundation.omni.test.rpc.sto=FINEST