logger: fix warning output

This commit is contained in:
João Marcos P. Bezerra 2024-03-15 19:01:35 -03:00 committed by João Marcos
parent 88e9d9afc7
commit ccbdceac34

View File

@ -73,9 +73,9 @@ impl PrintMessage {
} }
MessageLevel::Warning => { MessageLevel::Warning => {
if is_running_in_accessible_mode() { if is_running_in_accessible_mode() {
Some(format!("{}Warning:{} ", *ORANGE, *RESET)) Some(format!("{}Warning:{} {}", *ORANGE, *RESET, self.contents))
} else { } else {
Some(format!("{}[WARNING]{} ", *ORANGE, *RESET)) Some(format!("{}[WARNING]{} {}", *ORANGE, *RESET, self.contents))
} }
} }
} }