Skip to content

Commit

Permalink
Log the error body when sens.com upload fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrik committed Oct 15, 2023
1 parent 9dd6574 commit 293148a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private void uploadMeasurement(ESensComPin pin, String sensorId, SensComMessage
if (response.isSuccessful()) {
LOG.info("Result success: {}", response.body());
} else {
LOG.warn("Request failed: {}", response.message());
LOG.warn("Request failed: {} - {}", response.message(), response.errorBody().string());
}
} catch (IOException e) {
LOG.warn("Caught IOException: {}", e.getMessage());
Expand Down

0 comments on commit 293148a

Please sign in to comment.