Skip to content

Commit

Permalink
SDCISA-18424 prevent staticHeader warnings for production stage
Browse files Browse the repository at this point in the history
  • Loading branch information
guentherm committed Jan 8, 2025
1 parent a5b4a31 commit 17f8333
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit 17f8333

Please sign in to comment.