]> git.ktnx.net Git - mobile-ledger.git/commitdiff
silence some debug
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 27 Apr 2019 20:18:10 +0000 (23:18 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 27 Apr 2019 20:18:10 +0000 (23:18 +0300)
app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java
app/src/main/java/net/ktnx/mobileledger/model/LedgerTransaction.java
app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java

index 8d98dc63c89e920ce1128df939f0ee014b33805b..207793bbaa7fdc176968cfd5f5d05b2addd1b559 100644 (file)
@@ -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));
index 2be23ae4961371fe050eac85440764afe508a02b..1685c1a7fa763af0647e36a504b5446bf41d1f34 100644 (file)
@@ -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;
         }
     }
index d0283cbfebaacd720a84ca301184f76f3864b3b4..a75ac72aae165e02cb40e76aa17bc3c8a5a7b471 100644 (file)
@@ -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();