From 9dc4f30a7441d71828142cc8dba0508164d739d1 Mon Sep 17 00:00:00 2001 From: Abhishek Banthia <8280282+n0shake@users.noreply.github.com> Date: Fri, 18 Mar 2022 23:06:58 -0400 Subject: [PATCH] Add console logging when defaults are wiped. --- Clocker/Overall App/AppDefaults.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Clocker/Overall App/AppDefaults.swift b/Clocker/Overall App/AppDefaults.swift index 33ecc56..214ded0 100644 --- a/Clocker/Overall App/AppDefaults.swift +++ b/Clocker/Overall App/AppDefaults.swift @@ -138,6 +138,7 @@ extension UserDefaults { func wipeIfNeccesary() { if let bundleID = Bundle.main.bundleIdentifier, object(forKey: "PreferencesHaveBeenWiped") == nil { + Logger.info("Wiping all user defaults") removePersistentDomain(forName: bundleID) set(true, forKey: "PreferencesHaveBeenWiped") }