forked from shadowfacts/Tusker
Tweak how Sentry installation ID is read
This commit is contained in:
parent
f84694b809
commit
878744b636
|
@ -115,9 +115,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
|||
}
|
||||
|
||||
if let clazz = NSClassFromString("SentryInstallation"),
|
||||
let objClazz = clazz as AnyObject as? NSObjectProtocol,
|
||||
objClazz.responds(to: Selector(("id"))),
|
||||
let id = objClazz.perform(Selector(("id"))).takeUnretainedValue() as? String {
|
||||
let objClazz = clazz as AnyObject as? NSObject,
|
||||
let id = objClazz.value(forKey: "id") as? String {
|
||||
logger.info("Initialized Sentry with installation/user ID: \(id, privacy: .public)")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue