From: Damyan Ivanov Date: Fri, 3 May 2019 15:11:40 +0000 (+0300) Subject: debug message when profile data is wiped X-Git-Tag: v0.10.0~56 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=d4ff639e95cda8c02e6f7b094e27624cb4502666;p=mobile-ledger.git debug message when profile data is wiped --- 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 a279f34f..873b0d68 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java @@ -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.utils.Logger; 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; @@ -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(); + Logger.debug("wipe", String.format(Locale.ENGLISH, "Profile %s wiped out", pUuid[0])); } finally { db.endTransaction();