Skip to content

Commit

Permalink
refactor(image): add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeStanger committed Mar 14, 2024
1 parent 00a6a84 commit b912619
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/image/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")] {
Expand Down Expand Up @@ -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<Self> {
let location = Self::get_location(input, theme, size, use_fallback, 0)?;
debug!("Resolved {input} --> {location:?} (size: {size})");

Some(Self { location, size })
}
Expand Down

0 comments on commit b912619

Please sign in to comment.