File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
mParticle-Apple-SDK/Utils Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments