From a07e73b0c1065f0a44d0ca1f94b62cfb9c2c912c Mon Sep 17 00:00:00 2001 From: Rahul Narula Date: Mon, 15 Oct 2018 20:09:53 -0700 Subject: [PATCH] minor refactor for Environment --- .../boot/logging/logback/SpringBootJoranConfigurator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/SpringBootJoranConfigurator.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/SpringBootJoranConfigurator.java index 128950b286ee..5c547914bef7 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/SpringBootJoranConfigurator.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/SpringBootJoranConfigurator.java @@ -45,7 +45,7 @@ public void addInstanceRules(RuleStore rs) { rs.addRule(new ElementSelector("configuration/springProperty"), new SpringPropertyAction(environment)); rs.addRule(new ElementSelector("*/springProfile"), - new SpringProfileAction(this.initializationContext.getEnvironment())); + new SpringProfileAction(environment)); rs.addRule(new ElementSelector("*/springProfile/*"), new NOPAction()); }