From 14e0def8c2823601f8650c7bf625ad76ecfa9476 Mon Sep 17 00:00:00 2001 From: Teo Sarca Date: Fri, 12 May 2017 20:15:02 +0300 Subject: [PATCH] Avoid spamming the console with "Connection refused" when elasticsearch connection is not available https://github.com/metasfresh/metasfresh-webui-api/issues/370 --- src/main/resources/application.properties | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index d34a46534..291d4c696 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -69,5 +69,7 @@ logging.level.de.codecentric.boot.admin.services.ApplicationRegistrator=ERROR spring.data.elasticsearch.cluster-name=metasfresh spring.data.elasticsearch.cluster-nodes=localhost:9300 #spring.data.elasticsearch.repositories.enabled=true +# NOTE: Avoid spamming the console in case there is no connection to elasticsearch. Those "Connection refused" are logged as INFO +logging.level.org.elasticsearch.client.transport=WARN