From cd6afe066957e337347a53287984fab10c685cd0 Mon Sep 17 00:00:00 2001 From: KIM MIN WOO <79193811+minwoo1999@users.noreply.github.com> Date: Sat, 4 Jan 2025 19:21:37 +0900 Subject: [PATCH] Refactor: Use 'source' variable consistently in log formatting --- .../springframework/boot/logging/java/SimpleFormatter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/java/SimpleFormatter.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/java/SimpleFormatter.java index fc9dbfbcaf29..a3d74c1d7444 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/java/SimpleFormatter.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/java/SimpleFormatter.java @@ -45,8 +45,8 @@ public String format(LogRecord record) { String message = formatMessage(record); String throwable = getThrowable(record); String thread = getThreadName(); - return String.format(this.format, date, source, record.getLoggerName(), record.getLevel().getLocalizedName(), - message, throwable, thread, this.pid); + return String.format(this.format, date, source, source, record.getLevel().getLocalizedName(), message, + throwable, thread, this.pid); } private String getThrowable(LogRecord record) {