Skip to content

Commit

Permalink
HTTP-96 Fix logging code in JavaNetHttpPollingClient (#97)
Browse files Browse the repository at this point in the history
Co-authored-by: Adrian Vasiliu <vasiliu@fr.ibm.com>
(cherry picked from commit 7b2451b)
  • Loading branch information
AdrianVasiliu authored and kristoffSC committed May 13, 2024
1 parent 3dfe914 commit 6905b76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Fixed

- Fixed issue in the logging code of the `JavaNetHttpPollingClient` which prevents showing the status code and response body when the log level is configured at DEBUG (or lower) level.

## [0.14.0] - 2024-05-10

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ private Optional<RowData> processHttpResponse(
String responseBody = response.body();
int statusCode = response.statusCode();

log.debug("Received status code [%s] for RestTableSource request " +
"with Server response body [%s] ", statusCode, responseBody);
log.debug(String.format("Received status code [%s] for RestTableSource request " +
"with Server response body [%s] ", statusCode, responseBody));

if (notErrorCodeAndNotEmptyBody(responseBody, statusCode)) {
return Optional.ofNullable(responseBodyDecoder.deserialize(responseBody.getBytes()));
Expand Down

0 comments on commit 6905b76

Please sign in to comment.