mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Logs Fugu14-related events with OSLog
This commit is contained in:
@@ -197,7 +197,7 @@ private extension PatchAppOperation
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print("Downloaded OTA archive.")
|
Logger.fugu14.notice("Downloaded iOS OTA archive.")
|
||||||
return archiveURL
|
return archiveURL
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -227,7 +227,7 @@ private extension PatchAppOperation
|
|||||||
return .ok
|
return .ok
|
||||||
}
|
}
|
||||||
|
|
||||||
print("Extracted Spotlight from OTA archive.")
|
Logger.fugu14.notice("Extracted Spotlight from OTA archive.")
|
||||||
return spotlightFileURL
|
return spotlightFileURL
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -249,7 +249,7 @@ private extension PatchAppOperation
|
|||||||
let appBinaryURL = temporaryAppURL.appendingPathComponent(appName, isDirectory: false)
|
let appBinaryURL = temporaryAppURL.appendingPathComponent(appName, isDirectory: false)
|
||||||
try self.appPatcher.patchAppBinary(at: appBinaryURL, withBinaryAt: patchFileURL)
|
try self.appPatcher.patchAppBinary(at: appBinaryURL, withBinaryAt: patchFileURL)
|
||||||
|
|
||||||
print("Patched \(app.name).")
|
Logger.fugu14.notice("Patched \(app.name, privacy: .public)!")
|
||||||
return temporaryAppURL
|
return temporaryAppURL
|
||||||
}
|
}
|
||||||
.mapError { ($0 as NSError).withLocalizedFailure(String(format: NSLocalizedString("Could not patch %@ placeholder.", comment: ""), app.name)) }
|
.mapError { ($0 as NSError).withLocalizedFailure(String(format: NSLocalizedString("Could not patch %@ placeholder.", comment: ""), app.name)) }
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ final class PatchViewController: UIViewController
|
|||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
print("Failed to create temporary directory:", error)
|
Logger.fugu14.error("Failed to create temporary directory \(self.temporaryDirectory.lastPathComponent, privacy: .public). \(error.localizedDescription, privacy: .public)")
|
||||||
}
|
}
|
||||||
|
|
||||||
self.update()
|
self.update()
|
||||||
@@ -197,7 +197,7 @@ private extension PatchViewController
|
|||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
print("Failed to remove temporary directory:", error)
|
Logger.fugu14.error("Failed to remove temporary directory \(self.temporaryDirectory.lastPathComponent, privacy: .public). \(error.localizedDescription, privacy: .public)")
|
||||||
}
|
}
|
||||||
|
|
||||||
if let observation = self.didEnterBackgroundObservation
|
if let observation = self.didEnterBackgroundObservation
|
||||||
@@ -313,7 +313,7 @@ private extension PatchViewController
|
|||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
print("Error unzipping app bundle:", error)
|
Logger.fugu14.error("Error unzipping app bundle: \(error.localizedDescription, privacy: .public)")
|
||||||
unzippingError = error
|
unzippingError = error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ public extension Logger
|
|||||||
static let altstoreSubsystem = Bundle.main.bundleIdentifier!
|
static let altstoreSubsystem = Bundle.main.bundleIdentifier!
|
||||||
|
|
||||||
static let sideload = Logger(subsystem: altstoreSubsystem, category: "Sideload")
|
static let sideload = Logger(subsystem: altstoreSubsystem, category: "Sideload")
|
||||||
|
|
||||||
|
static let fugu14 = Logger(subsystem: altstoreSubsystem, category: "Fugu14")
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(iOS 15, *)
|
@available(iOS 15, *)
|
||||||
|
|||||||
Reference in New Issue
Block a user