orta / ARAnalytics

Simplify your iOS/Mac analytics
MIT License
1.84k stars 217 forks source link

When logging NSErrors, include domain and code #295

Open jksk opened 7 years ago

jksk commented 7 years ago

Currently, it seems that localizedFailureReason, localizedDescription, localizedRecoverySuggestion and localizedRecoveryOptions are being logged. Curiously, error domain and error code aren't logged. Often, this is the most pertinent information.

Case in point: I have some logged errors which only contains the description "The operation couldn't be completed", and no other information. This makes them hard to track.