Skip to content

Commit e9c838a

Browse files
committed
Ref config logging
1 parent 199d48a commit e9c838a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/config.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl Config {
6161

6262
pub fn handle_logs(&self) {
6363
if self.default {
64-
info!("Config file not found, using default configuration.");
64+
info!("Config file not found, using default configuration");
6565
}
6666
}
6767

@@ -70,7 +70,11 @@ impl Config {
7070
match Self::load_favicon_as_base64(favicon.to_string()) {
7171
Ok(favicon_base64) => self.status.favicon = Some(favicon_base64),
7272
Err(e) => {
73-
error!("Error loading favicon: {}", e);
73+
// Only log favicon errors for custom configs, since default config includes a known favicon
74+
if !self.default {
75+
error!("Error loading favicon: {}", e);
76+
}
77+
7478
self.status.favicon = None;
7579
}
7680
}

0 commit comments

Comments
 (0)