Logs Fugu14-related events with OSLog

This commit is contained in:
Riley Testut
2023-10-18 14:09:06 -05:00
committed by Magesh K
parent 93b6da4855
commit 27ca2f285b
3 changed files with 8 additions and 6 deletions

View File

@@ -197,7 +197,7 @@ private extension PatchAppOperation
}
}
print("Downloaded OTA archive.")
Logger.fugu14.notice("Downloaded iOS OTA archive.")
return archiveURL
#endif
@@ -227,7 +227,7 @@ private extension PatchAppOperation
return .ok
}
print("Extracted Spotlight from OTA archive.")
Logger.fugu14.notice("Extracted Spotlight from OTA archive.")
return spotlightFileURL
#endif
@@ -249,7 +249,7 @@ private extension PatchAppOperation
let appBinaryURL = temporaryAppURL.appendingPathComponent(appName, isDirectory: false)
try self.appPatcher.patchAppBinary(at: appBinaryURL, withBinaryAt: patchFileURL)
print("Patched \(app.name).")
Logger.fugu14.notice("Patched \(app.name, privacy: .public)!")
return temporaryAppURL
}
.mapError { ($0 as NSError).withLocalizedFailure(String(format: NSLocalizedString("Could not patch %@ placeholder.", comment: ""), app.name)) }