Log to Crashlytics in background thread

This commit is contained in:
Benoit Martins 2025-05-20 10:50:45 +02:00
parent 0fceedc0aa
commit 0b51bd55ce

View file

@ -92,7 +92,11 @@ class Log: LoggingServiceDelegate {
NSLog(log)
}
#if USE_CRASHLYTICS
Crashlytics.crashlytics().log(log)
if FirebaseApp.app() != nil {
DispatchQueue.global(qos: .background).async {
Crashlytics.crashlytics().log(log)
}
}
#endif
}