From 831e025cb175c63ee9c673f8a1954b1fb878c98f Mon Sep 17 00:00:00 2001 From: John Nunley Date: Fri, 21 Jul 2023 18:04:00 -0700 Subject: [PATCH] Upgrade missing glyphs to a warning It is annoying to have to grep through DEBUG logs for this. --- src/font/fallback/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/font/fallback/mod.rs b/src/font/fallback/mod.rs index 2440e89..6f35cf3 100644 --- a/src/font/fallback/mod.rs +++ b/src/font/fallback/mod.rs @@ -60,14 +60,14 @@ impl<'a> FontFallbackIter<'a> { pub fn check_missing(&mut self, word: &str) { if self.end { - log::debug!( + log::warn!( "Failed to find any fallback for {:?} locale '{}': '{}'", self.scripts, self.font_system.locale(), word ); } else if self.other_i > 0 { - log::debug!( + log::warn!( "Failed to find preset fallback for {:?} locale '{}', used '{}': '{}'", self.scripts, self.font_system.locale(), @@ -76,7 +76,7 @@ impl<'a> FontFallbackIter<'a> { ); } else if !self.scripts.is_empty() && self.common_i > 0 { let family = common_fallback()[self.common_i - 1]; - log::debug!( + log::warn!( "Failed to find script fallback for {:?} locale '{}', used '{}': '{}'", self.scripts, self.font_system.locale(),