chore: handle more sources of excess cosmic-config logs

This commit is contained in:
Michael Aaron Murphy 2025-02-19 16:57:24 +01:00
parent ab6de5304b
commit 76348bb985
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
3 changed files with 18 additions and 6 deletions

View file

@ -117,7 +117,7 @@ impl Default for Core {
system_theme_mode: ThemeMode::config()
.map(|c| {
ThemeMode::get_entry(&c).unwrap_or_else(|(errors, mode)| {
for why in errors {
for why in errors.into_iter().filter(cosmic_config::Error::is_err) {
tracing::error!(?why, "ThemeMode config entry error");
}
mode