Skip to content

Commit 83d93a5

Browse files
corrrect logger usage
1 parent aba0d09 commit 83d93a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mParticle-Apple-SDK/Utils/MPUserDefaults.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public protocol MPUserDefaultsProtocol {
227227
return swiftDict
228228
}
229229
} catch {
230-
print(error)
230+
MPLog.error("Failed to unarchive configuration: \(error)")
231231
}
232232
return nil
233233
}
@@ -252,7 +252,7 @@ public protocol MPUserDefaultsProtocol {
252252
setMPObject(requestTimestamp - currentAge, forKey: Miscellaneous.kMPConfigProvisionedTimestampKey, userId: userID)
253253
setMPObject(maxAge, forKey: Miscellaneous.kMPConfigMaxAgeHeaderKey, userId: userID)
254254
} catch {
255-
print(error)
255+
MPLog.error("Failed to archive configuration: \(error)")
256256
}
257257
}
258258

@@ -369,7 +369,7 @@ public protocol MPUserDefaultsProtocol {
369369
let data = try NSKeyedArchiver.archivedData(withRootObject: lastUploadSettings, requiringSecureCoding: true)
370370
setMPObject(data, forKey: Miscellaneous.kMPLastUploadSettingsUserDefaultsKey, userId: 0)
371371
} catch {
372-
print(error)
372+
MPLog.error("Failed to archive upload settings: \(error)")
373373
}
374374
} else {
375375
removeMPObject(forKey: Miscellaneous.kMPLastUploadSettingsUserDefaultsKey, userId: 0)
@@ -381,7 +381,7 @@ public protocol MPUserDefaultsProtocol {
381381
do {
382382
return try NSKeyedUnarchiver.unarchivedObject(ofClass: MPUploadSettings.self, from: data)
383383
} catch {
384-
print(error)
384+
MPLog.error("Failed to unarchive upload settings: \(error)")
385385
}
386386
}
387387
return nil

0 commit comments

Comments
 (0)