From e00109d77f06d5a2e3057865eda3f530bc40a046 Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Thu, 5 Jan 2023 19:26:36 -0800 Subject: [PATCH] Downgrade some logging messages --- src/font/fallback/mod.rs | 8 ++++---- src/font/system/redox.rs | 2 +- src/font/system/std.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/font/fallback/mod.rs b/src/font/fallback/mod.rs index 0ef3f5c..7b8fa8c 100644 --- a/src/font/fallback/mod.rs +++ b/src/font/fallback/mod.rs @@ -59,7 +59,7 @@ impl<'a> FontFallbackIter<'a> { pub fn check_missing(&self, word: &str) { if self.end { - log::warn!( + log::debug!( "Failed to find any fallback for {:?} locale '{}': '{}'", self.scripts, self.locale, @@ -67,7 +67,7 @@ impl<'a> FontFallbackIter<'a> { ); } else if self.other_i > 0 { let font = &self.fonts[self.other_i - 1]; - log::warn!( + log::debug!( "Failed to find preset fallback for {:?} locale '{}', used '{}': '{}'", self.scripts, self.locale, @@ -113,7 +113,7 @@ impl<'a> Iterator for FontFallbackIter<'a> { return Some(font); } } - log::warn!( + log::debug!( "failed to find family '{}' for script {:?} and locale '{}'", script_family, script, @@ -134,7 +134,7 @@ impl<'a> Iterator for FontFallbackIter<'a> { return Some(font); } } - log::warn!("failed to find family '{}'", common_family); + log::debug!("failed to find family '{}'", common_family); } //TODO: do we need to do this? diff --git a/src/font/system/redox.rs b/src/font/system/redox.rs index a399896..3ba463d 100644 --- a/src/font/system/redox.rs +++ b/src/font/system/redox.rs @@ -20,7 +20,7 @@ impl FontSystem { log::warn!("failed to get system locale, falling back to en-US"); String::from("en-US") }); - log::info!("Locale: {}", locale); + log::debug!("Locale: {}", locale); //TODO: allow loading fonts from memory let mut db = fontdb::Database::new(); diff --git a/src/font/system/std.rs b/src/font/system/std.rs index 2306fb6..1025747 100644 --- a/src/font/system/std.rs +++ b/src/font/system/std.rs @@ -29,7 +29,7 @@ impl FontSystem { log::warn!("failed to get system locale, falling back to en-US"); String::from("en-US") }); - log::info!("Locale: {}", locale); + log::debug!("Locale: {}", locale); let mut db = fontdb::Database::new(); {