]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Log on VPNStatusDidChange.
authorJeroen Leenarts <jeroen.leenarts@gmail.com>
Sun, 12 Aug 2018 19:50:54 +0000 (21:50 +0200)
committerJeroen Leenarts <jeroen.leenarts@gmail.com>
Sun, 12 Aug 2018 19:50:54 +0000 (21:50 +0200)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
WireGuard/Coordinators/AppCoordinator.swift

index 2477353f50e93bfcfe241421ce48fdad5d5c905a..6941d2243988488d3c5234720e2e7f5667ce4bd1 100644 (file)
@@ -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) {