Skip to content
Snippets Groups Projects
Commit e2f672b6 authored by Volker Richert's avatar Volker Richert
Browse files

add logging

remove useless logging
parent b717df16
No related branches found
No related tags found
No related merge requests found
......@@ -175,7 +175,8 @@ public class MedtronicCnlReader {
// CNL<-->PUMP comms can have occasional short lived noise causing errors, retrying once catches this
try {
PumpTimeResponseMessage response = new PumpTimeRequestMessage(mPumpSession).send(mDevice);
Log.d(TAG, "Finished getPumpTime with date " + response.getPumpTime());
// ignore the first error. Just log retry
// Log.d(TAG, "Finished getPumpTime with date " + response.getPumpTime());
return response.getPumpTime();
} catch (UnexpectedMessageException e) {
Log.e(TAG, "Unexpected Message", e);
......@@ -196,7 +197,7 @@ public class MedtronicCnlReader {
try {
PumpStatusResponseMessage response = new PumpStatusRequestMessage(mPumpSession).send(mDevice);
response.updatePumpRecord(pumpRecord);
Log.d(TAG, "Finished updatePumpStatus");
Log.d(TAG, "Finished updatePumpStatus: " + pumpRecord.toString());
return pumpRecord;
} catch (UnexpectedMessageException e) {
Log.e(TAG, "Unexpected Message", e);
......@@ -207,7 +208,7 @@ public class MedtronicCnlReader {
PumpStatusResponseMessage response = new PumpStatusRequestMessage(mPumpSession).send(mDevice);
response.updatePumpRecord(pumpRecord);
Log.d(TAG, "Finished updatePumpStatus");
Log.d(TAG, "Finished updatePumpStatus: " + pumpRecord.toString());
return pumpRecord;
}
......
......@@ -302,4 +302,37 @@ public class PumpStatusEvent extends RealmObject {
}
}
}
@Override
public String toString() {
return "PumpStatusEvent{" +
"eventDate=" + eventDate +
", pumpDate=" + pumpDate +
", deviceName='" + deviceName + '\'' +
", suspended=" + suspended +
", bolusing=" + bolusing +
", deliveringInsulin=" + deliveringInsulin +
", tempBasalActive=" + tempBasalActive +
", cgmActive=" + cgmActive +
", activeBasalPattern=" + activeBasalPattern +
", basalRate=" + basalRate +
", tempBasalRate=" + tempBasalRate +
", tempBasalPercentage=" + tempBasalPercentage +
", tempBasalMinutesRemaining=" + tempBasalMinutesRemaining +
", basalUnitsDeliveredToday=" + basalUnitsDeliveredToday +
", batteryPercentage=" + batteryPercentage +
", reservoirAmount=" + reservoirAmount +
", minutesOfInsulinRemaining=" + minutesOfInsulinRemaining +
", activeInsulin=" + activeInsulin +
", sgv=" + sgv +
", sgvDate=" + sgvDate +
", lowSuspendActive=" + lowSuspendActive +
", cgmTrend='" + cgmTrend + '\'' +
", recentBolusWizard=" + recentBolusWizard +
", bolusWizardBGL=" + bolusWizardBGL +
", pumpTimeOffset=" + pumpTimeOffset +
", uploaded=" + uploaded +
'}';
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment