From a81e8dcf3cb0dc10aea41a073cf3fd630e67a3d2 Mon Sep 17 00:00:00 2001 From: Jeroen Leenarts Date: Sun, 12 Aug 2018 21:50:54 +0200 Subject: [PATCH] Log on VPNStatusDidChange. Signed-off-by: Jason A. Donenfeld --- WireGuard/Coordinators/AppCoordinator.swift | 6 ++++++ 1 file changed, 6 insertions(+) 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) {