From: Jeroen Leenarts Date: Sun, 12 Aug 2018 19:50:54 +0000 (+0200) Subject: Log on VPNStatusDidChange. X-Git-Tag: 0.0.20181104-1~371 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a81e8dcf3cb0dc10aea41a073cf3fd630e67a3d2;p=thirdparty%2Fwireguard-apple.git Log on VPNStatusDidChange. Signed-off-by: Jason A. Donenfeld --- diff --git a/WireGuard/Coordinators/AppCoordinator.swift b/WireGuard/Coordinators/AppCoordinator.swift index 2477353..6941d22 100644 --- a/WireGuard/Coordinators/AppCoordinator.swift +++ b/WireGuard/Coordinators/AppCoordinator.swift @@ -97,6 +97,12 @@ class AppCoordinator: RootViewCoordinator { // MARK: - NEVPNManager handling @objc private func VPNStatusDidChange(notification: NSNotification) { + //TODO implement + guard let session = notification.object as? NETunnelProviderSession else { + return + } + + os_log("VPNStatusDidChange: %{public}@", log: Log.general, type: .debug, description(for: session.status)) } public func showError(_ error: Error) {