What changed, and why it matters
This commit is a cosmetic formatting change to log output. It pads log level names (like 'INFO' or 'DEBUG') so that 4-letter and 5-letter levels line up visually in log files. There is no security relevance.
No action needed. This is a cosmetic change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change modifies the Display implementation for a logging Record in lightning/src/util/logger.rs. It changes the level formatting from {} to {:<5}, left-aligning and padding the level field to 5 characters. This affects only log message presentation and has no functional or security impact.
Changed components
lightning/src/util/logger.rsInspect captured patch +1 / −1
diff --git a/lightning/src/util/logger.rs b/lightning/src/util/logger.rs
index 253e8bd..f53c027 100644
--- a/lightning/src/util/logger.rs
+++ b/lightning/src/util/logger.rs
@@ -156,7 +156,7 @@ impl<$($args)?> Record<$($args)?> {
impl<$($args)?> Display for Record<$($args)?> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- let context = format!("{} [{}:{}]", self.level, self.module_path, self.line);
+ let context = format!("{:<5} [{}:{}]", self.level, self.module_path, self.line);
write!(f, "{:<48} {}", context, self.args)
}
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.