Downgrade some logging messages
This commit is contained in:
parent
63ae69df0a
commit
e00109d77f
3 changed files with 6 additions and 6 deletions
|
|
@ -59,7 +59,7 @@ impl<'a> FontFallbackIter<'a> {
|
||||||
|
|
||||||
pub fn check_missing(&self, word: &str) {
|
pub fn check_missing(&self, word: &str) {
|
||||||
if self.end {
|
if self.end {
|
||||||
log::warn!(
|
log::debug!(
|
||||||
"Failed to find any fallback for {:?} locale '{}': '{}'",
|
"Failed to find any fallback for {:?} locale '{}': '{}'",
|
||||||
self.scripts,
|
self.scripts,
|
||||||
self.locale,
|
self.locale,
|
||||||
|
|
@ -67,7 +67,7 @@ impl<'a> FontFallbackIter<'a> {
|
||||||
);
|
);
|
||||||
} else if self.other_i > 0 {
|
} else if self.other_i > 0 {
|
||||||
let font = &self.fonts[self.other_i - 1];
|
let font = &self.fonts[self.other_i - 1];
|
||||||
log::warn!(
|
log::debug!(
|
||||||
"Failed to find preset fallback for {:?} locale '{}', used '{}': '{}'",
|
"Failed to find preset fallback for {:?} locale '{}', used '{}': '{}'",
|
||||||
self.scripts,
|
self.scripts,
|
||||||
self.locale,
|
self.locale,
|
||||||
|
|
@ -113,7 +113,7 @@ impl<'a> Iterator for FontFallbackIter<'a> {
|
||||||
return Some(font);
|
return Some(font);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log::warn!(
|
log::debug!(
|
||||||
"failed to find family '{}' for script {:?} and locale '{}'",
|
"failed to find family '{}' for script {:?} and locale '{}'",
|
||||||
script_family,
|
script_family,
|
||||||
script,
|
script,
|
||||||
|
|
@ -134,7 +134,7 @@ impl<'a> Iterator for FontFallbackIter<'a> {
|
||||||
return Some(font);
|
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?
|
//TODO: do we need to do this?
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ impl FontSystem {
|
||||||
log::warn!("failed to get system locale, falling back to en-US");
|
log::warn!("failed to get system locale, falling back to en-US");
|
||||||
String::from("en-US")
|
String::from("en-US")
|
||||||
});
|
});
|
||||||
log::info!("Locale: {}", locale);
|
log::debug!("Locale: {}", locale);
|
||||||
|
|
||||||
//TODO: allow loading fonts from memory
|
//TODO: allow loading fonts from memory
|
||||||
let mut db = fontdb::Database::new();
|
let mut db = fontdb::Database::new();
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ impl FontSystem {
|
||||||
log::warn!("failed to get system locale, falling back to en-US");
|
log::warn!("failed to get system locale, falling back to en-US");
|
||||||
String::from("en-US")
|
String::from("en-US")
|
||||||
});
|
});
|
||||||
log::info!("Locale: {}", locale);
|
log::debug!("Locale: {}", locale);
|
||||||
|
|
||||||
let mut db = fontdb::Database::new();
|
let mut db = fontdb::Database::new();
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue