Replace NSLog with os_log.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
8382fddbdc
commit
cd6cb37163
|
@ -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 */)
|
||||||
|
|
Loading…
Reference in New Issue