Replace NSLog with os_log.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jeroen Leenarts 2018-08-28 14:05:34 +02:00
parent 8382fddbdc
commit cd6cb37163
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
setTunnelNetworkSettings(newSettings) { (error) in setTunnelNetworkSettings(newSettings) { (error) in
if let error = error { 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) startTunnelCompletionHandler(PacketTunnelProviderError.tunnelSetupFailed)
} else { } else {
startTunnelCompletionHandler(nil /* No errors */) startTunnelCompletionHandler(nil /* No errors */)