Skip to content

Commit 676b7d7

Browse files
committed
Refine log message
Rework c03e14b to avoid an extra empty space in log message See gh-3033
1 parent c03e14b commit 676b7d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-boot/src/main/java/org/springframework/boot/context/config/ConfigFileApplicationListener.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,9 @@ private PropertySource<?> loadIntoGroup(String identifier, String location,
391391
StringBuilder msg = new StringBuilder();
392392
msg.append(propertySource == null ? "Skipped " : "Loaded ");
393393
msg.append("config file ");
394-
msg.append("'" + location + "' ");
395-
msg.append(StringUtils.hasLength(profile) ? "for profile " + profile : "");
396-
msg.append(resource == null || !resource.exists() ? " resource not found" : "");
394+
msg.append("'").append(location).append("' ");
395+
msg.append(StringUtils.hasLength(profile) ? "for profile " + profile : " ");
396+
msg.append(resource == null || !resource.exists() ? "resource not found" : "");
397397
this.debug.add(msg);
398398

399399
return propertySource;

0 commit comments

Comments
 (0)