diff options
-rw-r--r-- | common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/NonConfigResource.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/NonConfigResource.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/NonConfigResource.java index 065e7f42b4..5e21fbdfb9 100644 --- a/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/NonConfigResource.java +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/NonConfigResource.java @@ -16,6 +16,9 @@ package org.onap.config; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + import java.io.File; import java.net.MalformedURLException; import java.net.URI; @@ -32,6 +35,7 @@ import java.util.Set; import java.util.function.Function; public class NonConfigResource { + private static final Logger LOGGER = LoggerFactory.getLogger(NonConfigResource.class); static final String NODE_CONFIG_LOCATION = "node.config.location"; static final String CONFIG_LOCATION = "config.location"; @@ -74,7 +78,7 @@ public class NonConfigResource { .findFirst().orElse(null); } catch (Exception exception) { - exception.printStackTrace(); + LOGGER.error("Failed to locate resource '{}'.", resource, exception); return null; } } |