From: Damyan Ivanov Date: Sun, 19 Dec 2021 10:54:19 +0000 (+0200) Subject: log count of retrieved accounts and transactions as well as the API X-Git-Tag: v0.21.1~4 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=7a8d5015c6277bc3b0c43779b99d7f84bbd13d48;p=mobile-ledger.git log count of retrieved accounts and transactions as well as the API --- diff --git a/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java b/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java index 56a7d6b8..202eafb9 100644 --- a/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java +++ b/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java @@ -439,6 +439,10 @@ public class RetrieveTransactionsTask extends Thread { list.add(acc); } throwIfCancelled(); + + Logger.warn("accounts", + String.format(Locale.US, "Got %d accounts using protocol %s", list.size(), + version.getDescription())); } return list; @@ -522,6 +526,10 @@ public class RetrieveTransactionsTask extends Thread { } throwIfCancelled(); + + Logger.warn("transactions", + String.format(Locale.US, "Got %d transactions using protocol %s", trList.size(), + apiVersion.getDescription())); } // json interface returns transactions if file order and the rest of the machinery