Browse Source

Add console logging when defaults are wiped.

pull/113/head
Abhishek Banthia 3 years ago
parent
commit
9dc4f30a74
  1. 1
      Clocker/Overall App/AppDefaults.swift

1
Clocker/Overall App/AppDefaults.swift

@ -138,6 +138,7 @@ extension UserDefaults {
func wipeIfNeccesary() { func wipeIfNeccesary() {
if let bundleID = Bundle.main.bundleIdentifier, object(forKey: "PreferencesHaveBeenWiped") == nil { if let bundleID = Bundle.main.bundleIdentifier, object(forKey: "PreferencesHaveBeenWiped") == nil {
Logger.info("Wiping all user defaults")
removePersistentDomain(forName: bundleID) removePersistentDomain(forName: bundleID)
set(true, forKey: "PreferencesHaveBeenWiped") set(true, forKey: "PreferencesHaveBeenWiped")
} }

Loading…
Cancel
Save