Skip to content

Commit 4c6907d

Browse files
committed
Remove superfluous \n when logging password
The last trailing `\n` is not required as the logging system will add it. See gh-2146
1 parent b6cb629 commit 4c6907d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/AuthenticationManagerConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public void configure(AuthenticationManagerBuilder auth) throws Exception {
181181
User user = AuthenticationManagerConfiguration.this.security.getUser();
182182
if (user.isDefaultPassword()) {
183183
logger.info("\n\nUsing default security password: " + user.getPassword()
184-
+ "\n\n");
184+
+ "\n");
185185
}
186186
this.defaultAuth = new AuthenticationManagerBuilder(
187187
AuthenticationManagerConfiguration.this.objectPostProcessor);

0 commit comments

Comments
 (0)