mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 02:58:07 +00:00
Fix logging in app extension
This commit is contained in:
parent
986276c04f
commit
c5c970d177
4 changed files with 5 additions and 4 deletions
|
|
@ -123,7 +123,7 @@ class CoreContext: ObservableObject {
|
|||
|
||||
coreQueue.async {
|
||||
LoggingService.Instance.logLevel = LogLevel.Debug
|
||||
Factory.Instance.logCollectionPath = Factory.Instance.getConfigDir(context: nil)
|
||||
Factory.Instance.logCollectionPath = Factory.Instance.getDataDir(context: UnsafeMutablePointer<Int8>(mutating: (Config.appGroupName as NSString).utf8String))
|
||||
Factory.Instance.enableLogCollection(state: LogCollectionState.Enabled)
|
||||
|
||||
Log.info("Checking if linphonerc file exists already. If not, creating one as a copy of linphonerc-default")
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ import Foundation
|
|||
|
||||
public enum AppGitInfo {
|
||||
public static let branch = "master"
|
||||
public static let commit = "aed687606"
|
||||
public static let commit = "986276c04"
|
||||
public static let tag = "6.1.0-alpha"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class Log: LoggingServiceDelegate {
|
|||
|
||||
private init() {
|
||||
service.domain = Bundle.main.bundleIdentifier!
|
||||
Core.setLogCollectionPath(path: Factory.Instance.getDownloadDir(context: UnsafeMutablePointer<Int8>(mutating: (Config.appGroupName as NSString).utf8String)))
|
||||
Core.setLogCollectionPath(path: Factory.Instance.getDataDir(context: UnsafeMutablePointer<Int8>(mutating: (Config.appGroupName as NSString).utf8String)))
|
||||
Core.enableLogCollection(state: LogCollectionState.Enabled)
|
||||
setMask()
|
||||
LoggingService.Instance.addDelegate(delegate: self)
|
||||
|
|
|
|||
|
|
@ -87,8 +87,9 @@ class NotificationService: UNNotificationServiceExtension {
|
|||
bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
|
||||
|
||||
LoggingService.Instance.logLevel = LogLevel.Debug
|
||||
Factory.Instance.logCollectionPath = Factory.Instance.getConfigDir(context: nil)
|
||||
Factory.Instance.logCollectionPath = Factory.Instance.getDataDir(context: UnsafeMutablePointer<Int8>(mutating: (Config.appGroupName as NSString).utf8String))
|
||||
Factory.Instance.enableLogCollection(state: LogCollectionState.Enabled)
|
||||
|
||||
Log.info("[msgNotificationService] start msgNotificationService extension")
|
||||
/*
|
||||
if (VFSUtil.vfsEnabled(groupName: Config.appGroupName) && !VFSUtil.activateVFS()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue