Commit 58d0edc6 authored by Alan Marchiori's avatar Alan Marchiori

added msg to know when we are current with a datalogger

parent f981f392
......@@ -169,6 +169,11 @@ class DataLogger:
self.last_collect['NextRecNbr'] = data[0]['BegRecNbr'] + data[0]['NbrOfRecs']
self.emit_all(tbl, data[0]['RecFrag'])
if more_flag:
self.log.info("{}.{} has more records to fetch".format(self.metric_id, tbl.name))
else:
self.log.info("{}.{} is current".format(self.metric_id, tbl.name))
#if self.data_callback:
#for rec in data[0]['RecFrag']:
#self.data_callback(tbl.dic_of_sensorTags, rec)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment