From 2641be380e1d2514b4e10fa4d13edcb1deeb87d0 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Mon, 22 Mar 2021 22:58:07 +0500 Subject: [PATCH] Remove url handling logging --- submodules/UrlHandling/Sources/UrlHandling.swift | 7 ------- 1 file changed, 7 deletions(-) diff --git a/submodules/UrlHandling/Sources/UrlHandling.swift b/submodules/UrlHandling/Sources/UrlHandling.swift index bd6552de0a..98f048e05f 100644 --- a/submodules/UrlHandling/Sources/UrlHandling.swift +++ b/submodules/UrlHandling/Sources/UrlHandling.swift @@ -550,20 +550,13 @@ public func resolveUrlImpl(context: AccountContext, peerId: PeerId?, url: String } } - Logger.shared.log("UrlHandling", "Resolving url: \(url)") if let urlValue = URL(string: url), let host = urlValue.host?.lowercased() { - Logger.shared.log("UrlHandling", "created URL object") - Logger.shared.log("UrlHandling", "known domains are: \n\(urlHandlingConfiguration.domains.joined(separator: "\n"))") if urlHandlingConfiguration.domains.contains(host), var components = URLComponents(string: url) { components.scheme = "https" var queryItems = components.queryItems ?? [] queryItems.append(URLQueryItem(name: "autologin_token", value: urlHandlingConfiguration.token)) components.queryItems = queryItems url = components.url?.absoluteString ?? url - - Logger.shared.log("UrlHandling", "host is in known domains") - Logger.shared.log("UrlHandling", "token is \(urlHandlingConfiguration.token ?? "nil")") - Logger.shared.log("UrlHandling", "url with token is \(url)") } else if !skipUrlAuth && urlHandlingConfiguration.urlAuthDomains.contains(host) { return .single(.urlAuth(url)) }