From 8523f110d7f72117ef04f5faa52b6d51be5cd70b Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Sat, 9 Dec 2023 19:27:34 +0100 Subject: [PATCH] Disable log file collection because of crash, to be fixed --- Linphone/Core/CoreExtension.swift | 4 ---- Linphone/Utils/Extensions/ConfigExtension.swift | 1 - Linphone/Utils/Log.swift | 3 ++- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Linphone/Core/CoreExtension.swift b/Linphone/Core/CoreExtension.swift index 0b0b9f94c..2a448aef4 100644 --- a/Linphone/Core/CoreExtension.swift +++ b/Linphone/Core/CoreExtension.swift @@ -17,9 +17,6 @@ * along with this program. If not, see . */ - - - // Core Extension provides a set of utilies to manage automatically a LinphoneCore no matter if it is from App or an extension. // It is based on a singleton pattern and adds. @@ -45,4 +42,3 @@ extension Core { } } - diff --git a/Linphone/Utils/Extensions/ConfigExtension.swift b/Linphone/Utils/Extensions/ConfigExtension.swift index 6576798f3..3659c3eae 100644 --- a/Linphone/Utils/Extensions/ConfigExtension.swift +++ b/Linphone/Utils/Extensions/ConfigExtension.swift @@ -48,7 +48,6 @@ extension Config { return hasEntry(section: section, key: key) == 1 ? getString(section: section, key: key, defaultString: "") : nil } - // Apple related static let appGroupName = "group.org.linphone.phone.logs" // Needs to be the same name in App Group (capabilities in ALL targets - app & extensions - content + service), can't be stored in the Config itself the Config needs this value to get created static let teamID = Config.get().getString(section: "app", key: "team_id", defaultString: "") diff --git a/Linphone/Utils/Log.swift b/Linphone/Utils/Log.swift index 25aecc8e5..37a088142 100644 --- a/Linphone/Utils/Log.swift +++ b/Linphone/Utils/Log.swift @@ -34,7 +34,8 @@ class Log: LoggingServiceDelegate { private init() { service.domain = Bundle.main.bundleIdentifier! - Core.setLogCollectionPath(path: Factory.Instance.getDownloadDir(context: UnsafeMutablePointer(mutating: (Config.appGroupName as NSString).utf8String))) + // CRASH TO BE FIXED ?? + //Core.setLogCollectionPath(path: Factory.Instance.getDownloadDir(context: UnsafeMutablePointer(mutating: (Config.appGroupName as NSString).utf8String))) Core.enableLogCollection(state: LogCollectionState.Enabled) setMask() LoggingService.Instance.addDelegate(delegate: self)