Skip to content

Commit

Permalink
Merge branch '3.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
twoseat committed Jun 16, 2020
2 parents 138c3d9 + e787600 commit f6121c0
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,19 @@ public void response(HttpClientResponse response) {
List<String> warnings = response.responseHeaders().getAll(CF_WARNINGS);

if (warnings.isEmpty()) {
RESPONSE_LOGGER.debug("{} {} ({})", response.status().code(), response.uri(), elapsed);
if (RESPONSE_LOGGER.isTraceEnabled()) {
RESPONSE_LOGGER.debug("{} {} ({}, {})", response.status().code(), response.uri(), elapsed, response.responseHeaders().get("X-Vcap-Request-Id"));
} else {
RESPONSE_LOGGER.debug("{} {} ({})", response.status().code(), response.uri(), elapsed);
}
} else {
RESPONSE_LOGGER.warn("{} {} ({}) [{}]", response.status().code(), response.uri(), elapsed, String.join(", ", warnings));
if (RESPONSE_LOGGER.isTraceEnabled()) {
RESPONSE_LOGGER.warn("{} {} ({}, {}) [{}]", response.status().code(), response.uri(), elapsed, response.responseHeaders().get("X-Vcap-Request-Id"),
String.join(", ", warnings));
} else {
RESPONSE_LOGGER.warn("{} {} ({}) [{}]", response.status().code(), response.uri(), elapsed, String.join(", ", warnings));

}
}
}

Expand Down

0 comments on commit f6121c0

Please sign in to comment.