From 5e34da205b722ac2d3fba50841c99d819462aace Mon Sep 17 00:00:00 2001 From: Pawel Lewandowski Date: Fri, 12 Nov 2021 14:37:34 +0100 Subject: [PATCH] Change the log level to prevent false-positives (#911) The `WARN` log level is being abused here which can flood the production logs (usually you are not interested in any lower log levels there). It is totally fine to not define a separate configMap for each profile that is active in the application therefore it shouldn't be a warning. The same applies to any other form of externalized configuration. --- .../cloud/kubernetes/fabric8/config/Fabric8ConfigUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-kubernetes-fabric8-config/src/main/java/org/springframework/cloud/kubernetes/fabric8/config/Fabric8ConfigUtils.java b/spring-cloud-kubernetes-fabric8-config/src/main/java/org/springframework/cloud/kubernetes/fabric8/config/Fabric8ConfigUtils.java index db4fe693..a48c3af9 100644 --- a/spring-cloud-kubernetes-fabric8-config/src/main/java/org/springframework/cloud/kubernetes/fabric8/config/Fabric8ConfigUtils.java +++ b/spring-cloud-kubernetes-fabric8-config/src/main/java/org/springframework/cloud/kubernetes/fabric8/config/Fabric8ConfigUtils.java @@ -111,7 +111,7 @@ public final class Fabric8ConfigUtils { : client.configMaps().inNamespace(namespace).withName(name).get(); if (configMap == null) { - LOG.warn("config-map with name : '" + name + "' not present in namespace : '" + namespace + "'"); + LOG.info("config-map with name : '" + name + "' not present in namespace : '" + namespace + "'"); return Collections.emptyMap(); }