From 7a8d5015c6277bc3b0c43779b99d7f84bbd13d48 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 19 Dec 2021 12:54:19 +0200 Subject: [PATCH] log count of retrieved accounts and transactions as well as the API --- .../ktnx/mobileledger/async/RetrieveTransactionsTask.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.5