From db330535e6975567b4b2890f856a4ef41f266958 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Tue, 16 Jul 2024 21:27:00 -0700 Subject: [PATCH] Add emoji and privacy to routing logs --- Meshtastic/Router/Router.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Meshtastic/Router/Router.swift b/Meshtastic/Router/Router.swift index 45b2f569..51803ed4 100644 --- a/Meshtastic/Router/Router.swift +++ b/Meshtastic/Router/Router.swift @@ -17,7 +17,7 @@ class Router: ObservableObject { self.navigationState = navigationState $navigationState.sink { destination in - Logger.services.info("Routed to \(String(describing: destination))") + Logger.services.info("🛣 Routed to \(String(describing: destination), privacy: .public)") }.store(in: &cancellables) } @@ -27,11 +27,11 @@ class Router: ObservableObject { func route(url: URL) { guard url.scheme == "meshtastic" else { - Logger.services.error("Received routing URL \(url) with invalid scheme. Ignoring route.") + Logger.services.error("🛣 Received routing URL \(url, privacy: .public) with invalid scheme. Ignoring route.") return } guard let components = URLComponents(url: url, resolvingAgainstBaseURL: false) else { - Logger.services.error("Received routing URL \(url) with invalid host path. Ignoring route.") + Logger.services.error("🛣 Received routing URL \(url, privacy: .public) with invalid host path. Ignoring route.") return }