Skip to content

Commit 0a24b75

Browse files
committed
Refactor: Simplify LogRecord formatting by removing redundant variable usage
1 parent 9f8a6bb commit 0a24b75

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/java

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/java/SimpleFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public String format(LogRecord record) {
4545
String message = formatMessage(record);
4646
String throwable = getThrowable(record);
4747
String thread = getThreadName();
48-
return String.format(this.format, date, source, record.getLoggerName(), record.getLevel().getLocalizedName(),
48+
return String.format(this.format, date, source, record.getLevel().getLocalizedName(),
4949
message, throwable, thread, this.pid);
5050
}
5151

0 commit comments

Comments
 (0)