Skip to content

Instantly share code, notes, and snippets.

@vikdenic
Created September 27, 2017 19:14
Show Gist options
  • Save vikdenic/7d5c2ab44511f05d2db08b5a4a26f46e to your computer and use it in GitHub Desktop.
Save vikdenic/7d5c2ab44511f05d2db08b5a4a26f46e to your computer and use it in GitHub Desktop.
Fabric log non-fatal
var params = [String : Any]()
if let currentUser = SPKUser.sharedUser {
params["userId"] = currentUser.idText
}
if let scene = scene {
params["app location"] = String(describing: type(of: scene))
}
Crashlytics.sharedInstance().recordError(error, withAdditionalUserInfo: params)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment