From 54f76bc2fd26732d09a51b16cbf7e3a57bb21d7f Mon Sep 17 00:00:00 2001 From: Glenn Renfro Date: Fri, 17 Jul 2015 10:58:27 -0400 Subject: [PATCH] GH-193 logs warning if failFast is false ConfigServicePropertySourceLocator should log a warning and not an error if failFast is false --- .../cloud/config/client/ConfigServicePropertySourceLocator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigServicePropertySourceLocator.java b/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigServicePropertySourceLocator.java index 1d4dcb0a..845347c9 100644 --- a/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigServicePropertySourceLocator.java +++ b/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigServicePropertySourceLocator.java @@ -104,7 +104,7 @@ public class ConfigServicePropertySourceLocator implements PropertySourceLocator "Could not locate PropertySource and the fail fast property is set, failing", error); } - logger.error("Could not locate PropertySource: " + logger.warn("Could not locate PropertySource: " + (errorBody == null ? error==null ? "label not found" : error.getMessage() : errorBody)); return null;