Skip to content

Commit 25b440e

Browse files
committed
Align log levels
Makes sure that 4 and 5 character log levels line up.
1 parent 4629ee2 commit 25b440e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/util/logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl<$($args)?> Record<$($args)?> {
156156

157157
impl<$($args)?> Display for Record<$($args)?> {
158158
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
159-
let context = format!("{} [{}:{}]", self.level, self.module_path, self.line);
159+
let context = format!("{:<5} [{}:{}]", self.level, self.module_path, self.line);
160160
write!(f, "{:<48} {}", context, self.args)
161161
}
162162
}

0 commit comments

Comments
 (0)