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

@@ -81,7 +81,7 @@ final class PatchViewController: UIViewController
}
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()
@@ -197,7 +197,7 @@ private extension PatchViewController
}
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
@@ -313,7 +313,7 @@ private extension PatchViewController
}
catch
{
print("Error unzipping app bundle:", error)
Logger.fugu14.error("Error unzipping app bundle: \(error.localizedDescription, privacy: .public)")
unzippingError = error
}
}