mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 02:58:07 +00:00
Log to Crashlytics in background thread
This commit is contained in:
parent
0fceedc0aa
commit
0b51bd55ce
1 changed files with 5 additions and 1 deletions
|
|
@ -92,7 +92,11 @@ class Log: LoggingServiceDelegate {
|
||||||
NSLog(log)
|
NSLog(log)
|
||||||
}
|
}
|
||||||
#if USE_CRASHLYTICS
|
#if USE_CRASHLYTICS
|
||||||
Crashlytics.crashlytics().log(log)
|
if FirebaseApp.app() != nil {
|
||||||
|
DispatchQueue.global(qos: .background).async {
|
||||||
|
Crashlytics.crashlytics().log(log)
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue