Disable log file collection because of crash, to be fixed

This commit is contained in:
QuentinArguillere 2023-12-09 19:27:34 +01:00
parent 26dd731f84
commit 8523f110d7
3 changed files with 2 additions and 6 deletions

View file

@ -17,9 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
// Core Extension provides a set of utilies to manage automatically a LinphoneCore no matter if it is from App or an extension. // 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. // It is based on a singleton pattern and adds.
@ -45,4 +42,3 @@ extension Core {
} }
} }

View file

@ -48,7 +48,6 @@ extension Config {
return hasEntry(section: section, key: key) == 1 ? getString(section: section, key: key, defaultString: "") : nil return hasEntry(section: section, key: key) == 1 ? getString(section: section, key: key, defaultString: "") : nil
} }
// Apple related
static let appGroupName = "group.org.linphone.phone.logs" 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 // 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: "") static let teamID = Config.get().getString(section: "app", key: "team_id", defaultString: "")

View file

@ -34,7 +34,8 @@ class Log: LoggingServiceDelegate {
private init() { private init() {
service.domain = Bundle.main.bundleIdentifier! service.domain = Bundle.main.bundleIdentifier!
Core.setLogCollectionPath(path: Factory.Instance.getDownloadDir(context: UnsafeMutablePointer<Int8>(mutating: (Config.appGroupName as NSString).utf8String))) // CRASH TO BE FIXED ??
//Core.setLogCollectionPath(path: Factory.Instance.getDownloadDir(context: UnsafeMutablePointer<Int8>(mutating: (Config.appGroupName as NSString).utf8String)))
Core.enableLogCollection(state: LogCollectionState.Enabled) Core.enableLogCollection(state: LogCollectionState.Enabled)
setMask() setMask()
LoggingService.Instance.addDelegate(delegate: self) LoggingService.Instance.addDelegate(delegate: self)