mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Add emoji and privacy to routing logs
This commit is contained in:
parent
8b78f7f19a
commit
db330535e6
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue