From 293148ac176b7f870e451bad5501b773f51dbdcc Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Sun, 15 Oct 2023 15:44:40 +0200 Subject: [PATCH] Log the error body when sens.com upload fails. --- .../src/main/java/nl/bertriksikken/senscom/SensComUploader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensor-data-bridge/src/main/java/nl/bertriksikken/senscom/SensComUploader.java b/sensor-data-bridge/src/main/java/nl/bertriksikken/senscom/SensComUploader.java index 8af45a9..0781d1a 100644 --- a/sensor-data-bridge/src/main/java/nl/bertriksikken/senscom/SensComUploader.java +++ b/sensor-data-bridge/src/main/java/nl/bertriksikken/senscom/SensComUploader.java @@ -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());