From 7ee51d9bc8bf69a473c007daf0e18066e9181fde Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Fri, 18 Jan 2019 10:29:14 -0500 Subject: [PATCH] Provide exact error when there is a problem opening the logging config file. Fixes #464 (#470) --- .../bootstrap/config/PropertySourceBootstrapConfiguration.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/config/PropertySourceBootstrapConfiguration.java b/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/config/PropertySourceBootstrapConfiguration.java index 94465b91..73eedf8d 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/config/PropertySourceBootstrapConfiguration.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/config/PropertySourceBootstrapConfiguration.java @@ -134,8 +134,7 @@ public class PropertySourceBootstrapConfiguration implements } catch (Exception ex) { PropertySourceBootstrapConfiguration.logger - .warn("Logging config file location '" + logConfig - + "' cannot be opened and will be ignored"); + .warn("Error opening logging config file " + logConfig, ex); } } }