Replace NSLog with os_log.
This commit is contained in:
parent
2261e3a9ad
commit
0eb10bbf41
|
@ -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