Skip to content

Commit

Permalink
give user feedback about ignored log settings and expected behavior
Browse files Browse the repository at this point in the history
also addresses
#3145 (review)
  • Loading branch information
filip-dulic-bloxico committed Apr 6, 2021
1 parent 7d1f4af commit 4df3ac4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jormungandr/src/settings/start/mod.rs
Expand Up @@ -74,6 +74,12 @@ impl RawSettings {
// Read log settings from the config file path.
if let Some(log) = self.config.as_ref().and_then(|cfg| cfg.log.as_ref()) {
if let Some(cfg) = log.0.first() {
if log.0.len() > 1 {
info_msgs.push(format!(
"only one entry for log settings allowed, ignoring these: {:?}",
&log.0[1..],
));
}
if let Some(level) = cfg.level {
log_config.level = level;
}
Expand Down

0 comments on commit 4df3ac4

Please sign in to comment.