]> git.ktnx.net Git - mobile-ledger.git/commitdiff
debug message when profile data is wiped
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 3 May 2019 15:11:40 +0000 (18:11 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 3 May 2019 15:11:40 +0000 (18:11 +0300)
app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java

index a279f34f0b45fa38a9230822f967a208a93895e4..873b0d68ae50b4dbf9b6a13f8c04359c871ac55d 100644 (file)
@@ -22,11 +22,13 @@ import android.database.sqlite.SQLiteDatabase;
 
 import net.ktnx.mobileledger.async.DbOpQueue;
 import net.ktnx.mobileledger.utils.Globals;
 
 import net.ktnx.mobileledger.async.DbOpQueue;
 import net.ktnx.mobileledger.utils.Globals;
+import net.ktnx.mobileledger.utils.Logger;
 import net.ktnx.mobileledger.utils.MLDB;
 
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
 import net.ktnx.mobileledger.utils.MLDB;
 
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
+import java.util.Locale;
 import java.util.UUID;
 
 import androidx.annotation.NonNull;
 import java.util.UUID;
 
 import androidx.annotation.NonNull;
@@ -446,6 +448,7 @@ public final class MobileLedgerProfile {
             db.execSQL("delete from transactions where profile=?", pUuid);
             db.execSQL("delete from transaction_accounts where profile=?", pUuid);
             db.setTransactionSuccessful();
             db.execSQL("delete from transactions where profile=?", pUuid);
             db.execSQL("delete from transaction_accounts where profile=?", pUuid);
             db.setTransactionSuccessful();
+            Logger.debug("wipe", String.format(Locale.ENGLISH, "Profile %s wiped out", pUuid[0]));
         }
         finally {
             db.endTransaction();
         }
         finally {
             db.endTransaction();