From aac654503bae370ae1539a983493d4ae1c2c5c2a Mon Sep 17 00:00:00 2001 From: Sathiya Date: Fri, 2 Mar 2018 17:09:48 +0100 Subject: [PATCH] Adds trace while allowing missing file by returing empty parse value --- config/src/main/java/com/typesafe/config/impl/Parseable.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/src/main/java/com/typesafe/config/impl/Parseable.java b/config/src/main/java/com/typesafe/config/impl/Parseable.java index 9f66af195..ae54a7d42 100644 --- a/config/src/main/java/com/typesafe/config/impl/Parseable.java +++ b/config/src/main/java/com/typesafe/config/impl/Parseable.java @@ -180,6 +180,8 @@ final private AbstractConfigValue parseValue(ConfigOrigin origin, return rawParseValue(origin, finalOptions); } catch (IOException e) { if (finalOptions.getAllowMissing()) { + trace(e.getMessage() + ". Allowing Missing File, this can be turned off by setting" + + " ConfigParseOptions.allowMissing = false"); return SimpleConfigObject.emptyMissing(origin); } else { trace("exception loading " + origin.description() + ": " + e.getClass().getName()