mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 10:41:03 +02:00
refactor(image): add debug logging
This commit is contained in:
parent
00a6a84ca6
commit
b912619d61
1 changed files with 2 additions and 1 deletions
|
@ -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<Self> {
|
||||
let location = Self::get_location(input, theme, size, use_fallback, 0)?;
|
||||
debug!("Resolved {input} --> {location:?} (size: {size})");
|
||||
|
||||
Some(Self { location, size })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue