- add logging to task

This commit is contained in:
Andy Rozman 2019-12-28 13:14:07 +01:00
parent c3236352d4
commit a719d44851

View file

@ -184,12 +184,16 @@ public class OmnipodUITask {
EventOmnipodDeviceStatusChange statusChange;
if (isLogEnabled())
LOG.debug("OmnipodUITask: @@@ In execute. {}", commandType);
LOG.debug("OmnipodUITask: @@@ postProcess. {}", commandType);
LOG.debug("OmnipodUITask: @@@ postProcess. responseType={}", responseType);
if (responseType == PodResponseType.Data || responseType == PodResponseType.Acknowledgment) {
postprocessor.postProcessData(this);
}
LOG.debug("OmnipodUITask: @@@ postProcess. responseType={}", responseType);
if (responseType == PodResponseType.Invalid) {
statusChange = new EventOmnipodDeviceStatusChange(PodDeviceState.ErrorWhenCommunicating,
"Unsupported command in OmnipodUITask");