From b912619d61a74921c854ea6464e0922e5c107a27 Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Thu, 14 Mar 2024 22:36:30 +0000 Subject: [PATCH] refactor(image): add debug logging --- src/image/provider.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/image/provider.rs b/src/image/provider.rs index a23debf..6003a14 100644 --- a/src/image/provider.rs +++ b/src/image/provider.rs @@ -11,7 +11,7 @@ use gtk::{IconLookupFlags, IconTheme}; use std::path::{Path, PathBuf}; #[cfg(feature = "http")] use tokio::sync::mpsc; -use tracing::warn; +use tracing::{debug, warn}; cfg_if!( if #[cfg(feature = "http")] { @@ -45,6 +45,7 @@ impl<'a> ImageProvider<'a> { /// but no other check is performed. pub fn parse(input: &str, theme: &'a IconTheme, use_fallback: bool, size: i32) -> Option { let location = Self::get_location(input, theme, size, use_fallback, 0)?; + debug!("Resolved {input} --> {location:?} (size: {size})"); Some(Self { location, size }) }