From 17f8333494887bd6cd69d40ee944e6769d209219 Mon Sep 17 00:00:00 2001 From: guentherm Date: Wed, 8 Jan 2025 13:43:08 +0100 Subject: [PATCH] SDCISA-18424 prevent staticHeader warnings for production stage --- .../src/main/java/org/swisspush/gateleen/hook/HookHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateleen-hook/src/main/java/org/swisspush/gateleen/hook/HookHandler.java b/gateleen-hook/src/main/java/org/swisspush/gateleen/hook/HookHandler.java index c0f42fff..22ed90a9 100755 --- a/gateleen-hook/src/main/java/org/swisspush/gateleen/hook/HookHandler.java +++ b/gateleen-hook/src/main/java/org/swisspush/gateleen/hook/HookHandler.java @@ -1568,7 +1568,7 @@ private void extractAndAddStaticHeadersToHook(final JsonObject jsonHook, final H // For backward compatibility we still parse the old "staticHeaders" - but now create a manipulator chain accordingly JsonObject staticHeaders = jsonHook.getJsonObject(STATIC_HEADERS); if (staticHeaders != null) { - log.warn("you use the deprecated \"staticHeaders\" syntax in your hook ({}). Please migrate to the more flexible \"headers\" syntax", jsonHook); + log.info("you use the deprecated \"staticHeaders\" syntax in your hook ({}). Please migrate to the more flexible \"headers\" syntax", jsonHook); hook.setHeaderFunction(HeaderFunctions.parseStaticHeadersFromJson(staticHeaders)); } }