From 0b51bd55ce64d9e92f3cbba3f4c6362c8d94dfd0 Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Tue, 20 May 2025 10:50:45 +0200 Subject: [PATCH] Log to Crashlytics in background thread --- Linphone/Utils/Log.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Linphone/Utils/Log.swift b/Linphone/Utils/Log.swift index 28257cf37..38b08ae4f 100644 --- a/Linphone/Utils/Log.swift +++ b/Linphone/Utils/Log.swift @@ -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 }