From 412b21a7ceeb01ad0096e883eea624c0baff25b9 Mon Sep 17 00:00:00 2001 From: Jeroen Leenarts Date: Sun, 12 Aug 2018 21:50:54 +0200 Subject: [PATCH] Log on VPNStatusDidChange. --- 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) {