Skips logging OperationError.cancelled errors

This commit is contained in:
Riley Testut
2022-11-14 15:35:57 -06:00
parent f445467598
commit 9f91db9642

View File

@@ -1803,6 +1803,12 @@ private extension AppManager
func log(_ error: Error, operation: LoggedError.Operation, app: AppProtocol)
{
switch error
{
case ~OperationError.Code.cancelled: return // Don't log OperationError.cancelled
default: break
}
// Sanitize NSError on same thread before performing background task.
let sanitizedError = (error as NSError).sanitizedForSerialization()