mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix build
This commit is contained in:
parent
ba9671a5f2
commit
becb079ee1
@ -13,10 +13,10 @@ private var accountCache: Account?
|
|||||||
|
|
||||||
private var installedSharedLogger = false
|
private var installedSharedLogger = false
|
||||||
|
|
||||||
private func setupSharedLogger(_ path: String) {
|
private func setupSharedLogger(rootPath: String, path: String) {
|
||||||
if !installedSharedLogger {
|
if !installedSharedLogger {
|
||||||
installedSharedLogger = true
|
installedSharedLogger = true
|
||||||
Logger.setSharedLogger(Logger(basePath: path))
|
Logger.setSharedLogger(Logger(rootPath: rootPath, basePath: path))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ public class IntentHandler: INExtension, INSendMessageIntentHandling, INSearchFo
|
|||||||
let logsPath = rootPath + "/siri-logs"
|
let logsPath = rootPath + "/siri-logs"
|
||||||
let _ = try? FileManager.default.createDirectory(atPath: logsPath, withIntermediateDirectories: true, attributes: nil)
|
let _ = try? FileManager.default.createDirectory(atPath: logsPath, withIntermediateDirectories: true, attributes: nil)
|
||||||
|
|
||||||
setupSharedLogger(logsPath)
|
setupSharedLogger(rootPath: rootPath, path: logsPath)
|
||||||
|
|
||||||
let appVersion = (Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String) ?? "unknown"
|
let appVersion = (Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String) ?? "unknown"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user