]> git.ktnx.net Git - mobile-ledger.git/commitdiff
log count of retrieved accounts and transactions as well as the API
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 19 Dec 2021 10:54:19 +0000 (12:54 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 19 Dec 2021 10:54:19 +0000 (12:54 +0200)
app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java

index 56a7d6b86585c36003f5a071298240e18ac19f0d..202eafb930a0f88ecfd90a88b6e4555845706880 100644 (file)
@@ -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