mirror of
https://gitee.com/openharmony/third_party_rust_log
synced 2024-11-27 09:50:34 +00:00
Respect padding for LevelFilter Display
This mirrors a similar commit fe073054a0
that changed output for Level, it seems sensible if the user wishes to
output the logging filter level to afford the same formatting choices.
This commit is contained in:
parent
5213657b81
commit
f9eb14c8a1
@ -638,7 +638,7 @@ impl FromStr for LevelFilter {
|
||||
|
||||
impl fmt::Display for LevelFilter {
|
||||
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(fmt, "{}", LOG_LEVEL_NAMES[*self as usize])
|
||||
fmt.pad(LOG_LEVEL_NAMES[*self as usize])
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user