aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2021-07-22 12:36:26 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2021-09-22 06:58:14 +0200
commitf5a14b8434d4e811f6df93a99114cdee17b7e172 (patch)
treeafca60a93306b2f62f553fce4350a6caffa49383
parentWireGuardKitGo: include new homebrew location in PATH (diff)
downloadwireguard-apple-f5a14b8434d4e811f6df93a99114cdee17b7e172.tar.xz
wireguard-apple-f5a14b8434d4e811f6df93a99114cdee17b7e172.zip
MacAppStoreUpdateDetector: Add pid to the log
Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r--Sources/WireGuardApp/UI/macOS/MacAppStoreUpdateDetector.swift3
1 files changed, 2 insertions, 1 deletions
diff --git a/Sources/WireGuardApp/UI/macOS/MacAppStoreUpdateDetector.swift b/Sources/WireGuardApp/UI/macOS/MacAppStoreUpdateDetector.swift
index 7304bed..7c83f3b 100644
--- a/Sources/WireGuardApp/UI/macOS/MacAppStoreUpdateDetector.swift
+++ b/Sources/WireGuardApp/UI/macOS/MacAppStoreUpdateDetector.swift
@@ -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"