diff --git a/WireGuardNetworkExtension/PacketTunnelProvider.swift b/WireGuardNetworkExtension/PacketTunnelProvider.swift index 712cac5..ba440d0 100644 --- a/WireGuardNetworkExtension/PacketTunnelProvider.swift +++ b/WireGuardNetworkExtension/PacketTunnelProvider.swift @@ -87,7 +87,7 @@ class PacketTunnelProvider: NEPacketTunnelProvider { setTunnelNetworkSettings(newSettings) { (error) in if let error = error { - NSLog("Error setting network settings: \(error)") + os_log("Error setting network settings: %s", log: Log.general, type: .error, error.localizedDescription) startTunnelCompletionHandler(PacketTunnelProviderError.tunnelSetupFailed) } else { startTunnelCompletionHandler(nil /* No errors */)