From 92815c79cfebdb1c5e7afb20f16aef316534774f Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Tue, 7 Apr 2020 15:27:17 +0200 Subject: [PATCH] add crashlytics log for app extensions --- msgNotification/Utils.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/msgNotification/Utils.swift b/msgNotification/Utils.swift index aedb27fd7..90da58b3e 100644 --- a/msgNotification/Utils.swift +++ b/msgNotification/Utils.swift @@ -18,6 +18,9 @@ */ import linphonesw +#if USE_CRASHLYTHICS +import Firebase +#endif enum LinphoneError: Error { case timeout @@ -63,6 +66,9 @@ class LinphoneLoggingServiceManager: LoggingServiceDelegate { level = "unknown" } +#if USE_CRASHLYTHICS + Crashlytics.crashlytics().log("\(level) [\(domain)] \(message)\n") +#endif NSLog("\(level) [\(domain)] \(message)\n") } }