From becb079ee1dffc18a043768fa88a23dae08910da Mon Sep 17 00:00:00 2001 From: Ali <> Date: Mon, 19 Oct 2020 23:30:43 +0400 Subject: [PATCH] Fix build --- Telegram/SiriIntents/IntentHandler.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SiriIntents/IntentHandler.swift b/Telegram/SiriIntents/IntentHandler.swift index 46253f0897..b9ed87bdda 100644 --- a/Telegram/SiriIntents/IntentHandler.swift +++ b/Telegram/SiriIntents/IntentHandler.swift @@ -13,10 +13,10 @@ private var accountCache: Account? private var installedSharedLogger = false -private func setupSharedLogger(_ path: String) { +private func setupSharedLogger(rootPath: String, path: String) { if !installedSharedLogger { 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 _ = 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"