check if there are yaml configurations before informing override
@@ -87,6 +87,8 @@ impl RawSettings {
format: cmd_format.unwrap_or(DEFAULT_LOG_FORMAT),
output,
};
+ // check if there are entries being overriden
+ if !entries.is_empty() {
// log to info! that the output was overriden,
// we send this as a message because tracing Subscribers
// do not get initiated until after this code runs
@@ -94,6 +96,7 @@ impl RawSettings {
"log settings overriden from command line: {:?} replaced with {:?}",
entries, command_line_entry
));
+ }
// Replace any existing setting entries with the
// command line settings entry.
entries = vec![command_line_entry];
