Skip to content

Commit

Permalink
Verbose logging for Issue #229
Browse files Browse the repository at this point in the history
* logging.properties: increase verbosity in 3 packages
* OmniClient.java: log results of omniGetBalance calls
  • Loading branch information
msgilligan committed Jul 8, 2023
1 parent 74fd52a commit f4f3898
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ public List<Map<String, Object>> 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;
}

/**
Expand Down
4 changes: 4 additions & 0 deletions omnij-rpc/src/integ/logging.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f4f3898

Please sign in to comment.