diff --git a/sensor-data-bridge/src/main/java/nl/bertriksikken/opensense/OpenSenseUploader.java b/sensor-data-bridge/src/main/java/nl/bertriksikken/opensense/OpenSenseUploader.java index 5606661..230f0fa 100644 --- a/sensor-data-bridge/src/main/java/nl/bertriksikken/opensense/OpenSenseUploader.java +++ b/sensor-data-bridge/src/main/java/nl/bertriksikken/opensense/OpenSenseUploader.java @@ -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());