From: Stephen Seo Date: Mon, 1 Aug 2022 03:39:49 +0000 (+0900) Subject: Replace println! with debug_log::log(...) X-Git-Tag: 0.3.1~4 X-Git-Url: https://git.seodisparate.com/stephenseo/static/git-logo.png?a=commitdiff_plain;h=d6fa15699028af48a8dce2a8d0371cc29aaca050;p=mpd_info_screen Replace println! with debug_log::log(...) --- diff --git a/src/display.rs b/src/display.rs index cde0067..62c4ef2 100644 --- a/src/display.rs +++ b/src/display.rs @@ -92,10 +92,18 @@ fn string_to_text( loaded_fonts.push((path, font)); return Some(loaded_fonts.len() - 1); } else { - println!("Failed to load {:?}: {:?}", &path, new_font); + log( + format!("Failed to load {:?}: {:?}", &path, new_font), + debug_log::LogState::Error, + debug_log::LogLevel::Error, + ); } } else { - println!("Failed to find font for {}", c); + log( + format!("Failed to find font for {}", c), + debug_log::LogState::Error, + debug_log::LogLevel::Error, + ); } None