commit 14586b616cad45fb61cc3948c2fa9ec66ddfdb08
parent 7baf7e66dc4a8cdc9c7c465e2a9d82dc6d9e5c30
Author: William Casarin <jb55@jb55.com>
Date: Sun, 10 Sep 2023 18:21:39 -0700
log: remove some verbose preload logs
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/damus/Util/EventCache.swift b/damus/Util/EventCache.swift
@@ -365,15 +365,15 @@ func get_preload_plan(evcache: EventCache, ev: NostrEvent, our_keypair: Keypair,
func preload_image(url: URL) {
if ImageCache.default.isCached(forKey: url.absoluteString) {
- print("Preloaded image \(url.absoluteString) found in cache")
+ //print("Preloaded image \(url.absoluteString) found in cache")
// looks like we already have it cached. no download needed
return
}
- print("Preloading image \(url.absoluteString)")
-
+ //print("Preloading image \(url.absoluteString)")
+
KingfisherManager.shared.retrieveImage(with: Kingfisher.ImageResource(downloadURL: url)) { val in
- print("Preloaded image \(url.absoluteString)")
+ //print("Preloaded image \(url.absoluteString)")
}
}
@@ -391,8 +391,8 @@ func preload_event(plan: PreloadPlan, state: DamusState) async {
let profiles = state.profiles
let our_keypair = state.keypair
- print("Preloading event \(plan.event.content)")
-
+ //print("Preloading event \(plan.event.content)")
+
if artifacts == nil && plan.load_artifacts {
let arts = render_note_content(ev: plan.event, profiles: profiles, keypair: our_keypair)
artifacts = arts