From cd6cb371634a2d7cbc91d52ebe1d09b49dd8ea4e Mon Sep 17 00:00:00 2001 From: Jeroen Leenarts Date: Tue, 28 Aug 2018 14:05:34 +0200 Subject: [PATCH] Replace NSLog with os_log. Signed-off-by: Jason A. Donenfeld --- WireGuardNetworkExtension/PacketTunnelProvider.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */)