From 8bfd1137528b2ef6fe0c7408b191b60b0c254b6e Mon Sep 17 00:00:00 2001 From: Nicola Guerrera Date: Sun, 14 May 2023 23:00:24 +0200 Subject: [PATCH] Added cache debug statements --- src/xdg.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xdg.rs b/src/xdg.rs index 7d1c1dc..6717fe2 100644 --- a/src/xdg.rs +++ b/src/xdg.rs @@ -252,6 +252,7 @@ impl DesktopFile { return Some(icon); } } + print!("Cache miss") } // TODO: handle preferred_theme @@ -311,7 +312,7 @@ impl Icon { .unwrap() .to_owned(), ) { - dbg!("Saving value in the DB"); + print!("Saving in the cache"); IMAGE_CACHE.lock().unwrap().insert( self.path .with_extension("")