]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
MacAppStoreUpdateDetector: Add pid to the log
authorRoopesh Chander <roop@roopc.net>
Thu, 22 Jul 2021 07:06:26 +0000 (12:36 +0530)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 22 Sep 2021 04:58:14 +0000 (06:58 +0200)
Signed-off-by: Roopesh Chander <roop@roopc.net>
Sources/WireGuardApp/UI/macOS/MacAppStoreUpdateDetector.swift

index 7304bed46c6a13059617cae8b3eb3a82d00f0699..7c83f3bd5b923fc2c2688023a6e4f4a70dfde8f1 100644 (file)
@@ -8,8 +8,9 @@ class MacAppStoreUpdateDetector {
         guard isQuitEvent(quitAppleEvent) else { return false }
         guard let senderPIDDescriptor = quitAppleEvent.attributeDescriptor(forKeyword: keySenderPIDAttr) else { return false }
         let pid = senderPIDDescriptor.int32Value
+        wg_log(.debug, message: "aevt/quit Apple event received from pid: \(pid)")
         guard let executablePath = getExecutablePath(from: pid) else { return false }
-        wg_log(.debug, message: "aevt/quit Apple event received from: \(executablePath)")
+        wg_log(.debug, message: "aevt/quit Apple event received from executable: \(executablePath)")
         if executablePath.hasPrefix("/System/Library/") {
             let executableName = URL(fileURLWithPath: executablePath, isDirectory: false).lastPathComponent
             return executableName == "com.apple.CommerceKit.StoreAEService"