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

added msg to know when we are current with a datalogger

parent f981f392
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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)