|
|
|
@ -208,8 +208,9 @@ public class DeviceInformationManagerImpl implements DeviceInformationManager {
|
|
|
|
|
deviceDetailsWrapper.setEvents(payload);
|
|
|
|
|
Future<Integer> apiCallback = publishEvents(device, deviceDetailsWrapper, eventType);
|
|
|
|
|
if (null != apiCallback) {
|
|
|
|
|
boolean isDebugEnabled = log.isDebugEnabled();
|
|
|
|
|
while(!apiCallback.isDone()) {
|
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
|
if (isDebugEnabled) {
|
|
|
|
|
log.debug("Waiting for the response from the API for the reporting data " +
|
|
|
|
|
"publishing for the device " + deviceId + ". Event payload: " + payload);
|
|
|
|
|
}
|
|
|
|
|