From d0b424f408c83bb89e672490daeb39fc051a85db Mon Sep 17 00:00:00 2001 From: nythepegasus Date: Wed, 8 May 2024 23:54:36 -0400 Subject: [PATCH] Skips logging cancelled errors --- AltStore/Managing Apps/AppManager.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AltStore/Managing Apps/AppManager.swift b/AltStore/Managing Apps/AppManager.swift index e1d571ae..a7a1a161 100644 --- a/AltStore/Managing Apps/AppManager.swift +++ b/AltStore/Managing Apps/AppManager.swift @@ -320,6 +320,10 @@ extension AppManager func log(_ error: Error, operation: LoggedError.Operation, app: AppProtocol) { + switch error { + case ~OperationError.Code.cancelled: return // Don't log cancelled events + default: break + } // Sanitize NSError on same thread before performing background task. let sanitizedError = (error as NSError).sanitizedForSerialization()