Skip to content

Commit 6905b76

Browse files
AdrianVasiliukristoffSC
authored andcommitted
HTTP-96 Fix logging code in JavaNetHttpPollingClient (#97)
Co-authored-by: Adrian Vasiliu <[email protected]> (cherry picked from commit 7b2451b)
1 parent 3dfe914 commit 6905b76

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
### Fixed
6+
7+
- 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.
8+
59
## [0.14.0] - 2024-05-10
610

711
### Added

src/main/java/com/getindata/connectors/http/internal/table/lookup/JavaNetHttpPollingClient.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ private Optional<RowData> processHttpResponse(
9797
String responseBody = response.body();
9898
int statusCode = response.statusCode();
9999

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

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

0 commit comments

Comments
 (0)