Skip to content

Commit cd6afe0

Browse files
committed
Refactor: Use 'source' variable consistently in log formatting
1 parent 425876e commit cd6afe0

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ 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(),
49-
message, throwable, thread, this.pid);
48+
return String.format(this.format, date, source, source, record.getLevel().getLocalizedName(), message,
49+
throwable, thread, this.pid);
5050
}
5151

5252
private String getThrowable(LogRecord record) {

0 commit comments

Comments
 (0)