Skip to content

Commit

Permalink
Log HTTP error code when opensense upload fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrik committed Nov 20, 2023
1 parent aeff242 commit 5868bb8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ private void uploadMeasurement(String boxId, String sensComId, SensComMessage me
String result = response.body();
LOG.info("Upload for {} to opensense box {} success: {}", sensComId, boxId, result);
} else {
LOG.warn("Upload for {} to opensense box {} failure: {}", sensComId, boxId,
response.errorBody().string());
LOG.warn("Upload for {} to opensense box {} failure: {} - {}", sensComId, boxId,
response.code(), response.errorBody().string());
}
} catch (IOException e) {
LOG.warn("Caught IOException: {}", e.getMessage());
Expand Down

0 comments on commit 5868bb8

Please sign in to comment.