From 1c42b2e42a6fe3fe2aaae3ad3480d924db75f4ba Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 27 Apr 2019 23:18:10 +0300 Subject: [PATCH] silence some debug --- .../net/ktnx/mobileledger/async/RetrieveTransactionsTask.java | 3 +-- .../java/net/ktnx/mobileledger/model/LedgerTransaction.java | 4 ++-- .../java/net/ktnx/mobileledger/model/MobileLedgerProfile.java | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) 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 8d98dc63..207793bb 100644 --- a/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java +++ b/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java @@ -21,7 +21,6 @@ import android.annotation.SuppressLint; import android.database.sqlite.SQLiteDatabase; import android.os.AsyncTask; import android.os.OperationCanceledException; -import android.util.Log; import net.ktnx.mobileledger.err.HTTPException; import net.ktnx.mobileledger.json.AccountListParser; @@ -154,7 +153,7 @@ public class RetrieveTransactionsTask m = reComment.matcher(line); if (m.find()) { // TODO: comments are ignored for now - Log.v("transaction-parser", "Ignoring comment"); +// Log.v("transaction-parser", "Ignoring comment"); continue; } //L(String.format("State is %d", updating)); diff --git a/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransaction.java b/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransaction.java index 2be23ae4..1685c1a7 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransaction.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransaction.java @@ -142,8 +142,8 @@ public class LedgerTransaction { .rawQuery("SELECT 1 from transactions where data_hash = ?", new String[]{dataHash})) { boolean result = c.moveToFirst(); - debug("db", String.format("Transaction %d (%s) %s", id, dataHash, - result ? "already present" : "not present")); +// debug("db", String.format("Transaction %d (%s) %s", id, dataHash, +// result ? "already present" : "not present")); return result; } } diff --git a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java index d0283cbf..a75ac72a 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java @@ -225,7 +225,7 @@ public final class MobileLedgerProfile { item.getCurrency() }); } - debug("profile", String.format("Transaction %d stored", tr.getId())); +// debug("profile", String.format("Transaction %d stored", tr.getId())); } public String getOption(String name, String default_value) { SQLiteDatabase db = MLDB.getDatabase(); -- 2.39.5