From 4c6907d5d834339fda0da02a194a0eb3d369b0d1 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 7 Jan 2015 14:49:02 -0800 Subject: [PATCH] Remove superfluous `\n` when logging password The last trailing `\n` is not required as the logging system will add it. See gh-2146 --- .../security/AuthenticationManagerConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/AuthenticationManagerConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/AuthenticationManagerConfiguration.java index 85f92b75dd..68bc2f7cce 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/AuthenticationManagerConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/AuthenticationManagerConfiguration.java @@ -181,7 +181,7 @@ public class AuthenticationManagerConfiguration extends User user = AuthenticationManagerConfiguration.this.security.getUser(); if (user.isDefaultPassword()) { logger.info("\n\nUsing default security password: " + user.getPassword() - + "\n\n"); + + "\n"); } this.defaultAuth = new AuthenticationManagerBuilder( AuthenticationManagerConfiguration.this.objectPostProcessor);