summaryrefslogtreecommitdiff
path: root/Sora/Data/Booru
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-26 23:00:37 -0800
committerFuwn <[email protected]>2025-02-26 23:00:37 -0800
commita8ef38a8d17ca8b61a90a25a6c937098db49f83e (patch)
tree5fca34efb9330ade1f2cbb2f4e752c3d31e0e689 /Sora/Data/Booru
parentfeat: Development commit (diff)
downloadsora-testing-a8ef38a8d17ca8b61a90a25a6c937098db49f83e.tar.xz
sora-testing-a8ef38a8d17ca8b61a90a25a6c937098db49f83e.zip
feat: Development commit
Diffstat (limited to 'Sora/Data/Booru')
-rw-r--r--Sora/Data/Booru/BooruManager.swift24
1 files changed, 6 insertions, 18 deletions
diff --git a/Sora/Data/Booru/BooruManager.swift b/Sora/Data/Booru/BooruManager.swift
index a72df6c..8cf1ac6 100644
--- a/Sora/Data/Booru/BooruManager.swift
+++ b/Sora/Data/Booru/BooruManager.swift
@@ -114,9 +114,7 @@ class BooruManager: ObservableObject {
}
} catch {
if (error as? URLError)?.code != .cancelled {
- #if DEBUG
- print("fetchPosts: \(error)")
- #endif
+ debugPrint("BooruManager.fetchPosts: \(error)")
}
}
}
@@ -158,9 +156,7 @@ class BooruManager: ObservableObject {
}
} catch {
if (error as? URLError)?.code != .cancelled {
- #if DEBUG
- print("fetchAllTags: \(error)")
- #endif
+ debugPrint("BooruManager.fetchAllTags: \(error)")
}
}
}
@@ -200,9 +196,7 @@ class BooruManager: ObservableObject {
try data.write(to: url)
updateTagsCacheSize()
} catch {
- #if DEBUG
- print("saveTagsToCache: \(error)")
- #endif
+ debugPrint("BooruManager.saveTagsToCache: \(error)")
}
}
@@ -218,9 +212,7 @@ class BooruManager: ObservableObject {
self.updateTagsCacheSize()
}
} catch {
- #if DEBUG
- print("loadCachedTags: \(error)")
- #endif
+ debugPrint("BooruManager.loadCachedTags: \(error)")
}
}
@@ -231,9 +223,7 @@ class BooruManager: ObservableObject {
try FileManager.default.removeItem(at: url)
updateTagsCacheSize()
} catch {
- #if DEBUG
- print("clearCachedTags: \(error)")
- #endif
+ debugPrint("BooruManager.clearCachedTags: \(error)")
}
}
@@ -254,9 +244,7 @@ class BooruManager: ObservableObject {
} catch {
cacheSize = nil
- #if DEBUG
- print("updateCacheSize: \(error)")
- #endif
+ debugPrint("BooruManager.updateCacheSize: \(error)")
}
}