mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 08:17:16 +00:00
Log failed writes of scaled icons.
This commit is contained in:
1 parent
ec2b7b112c
commit
41f98fb2f9
1 file changed
+5
-1
@@ -150,7 +150,11 @@ extension Notification.Name {
|
||||
}
|
||||
|
||||
func saveDerivedImageData(_ data: Data, for url: String, suffix: String) async {
|
||||
try? await Self.saveToDisk(diskCache, key: Self.derivedDiskKey(url, suffix: suffix), data: data)
|
||||
do {
|
||||
try await Self.saveToDisk(diskCache, key: Self.derivedDiskKey(url, suffix: suffix), data: data)
|
||||
} catch {
|
||||
Self.logger.error("Couldn’t write derived image for \(url): \(error.localizedDescription)")
|
||||
}
|
||||
}
|
||||
|
||||
/// At most once a day per image: saves the access date, which orders images for removal,
|
||||
|
||||
Reference in new issue
Block a user