Skip to content

Commit

Permalink
Remove redundant logging
Browse files Browse the repository at this point in the history
  • Loading branch information
lassetyr committed Mar 6, 2024
1 parent bc7c49c commit 910f9e1
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ public void configure() {
.setHeader("httpClient.socketTimeout", constant(socketTimeout))
.setHeader("httpClient.connectTimeout", constant(connectTimeout))
.choice()
.when(header("showBody").isEqualTo(true))
.to("log:push:" + getClass().getSimpleName() + "?showAll=true&multiline=true")
.endChoice()
.otherwise()
.to("log:push:" + getClass().getSimpleName() + "?showAll=false&showExchangeId=true&showHeaders=true&showException=true&multiline=true&showBody=false")
.when(header("showBody").isEqualTo(true))
.to("log:push:" + getClass().getSimpleName() + "?showAll=true&multiline=true")
.endChoice()
.end()
.removeHeader("showBody")
.toD("${header.endpoint}")
Expand Down

0 comments on commit 910f9e1

Please sign in to comment.