Skip to content

Commit

Permalink
fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahannes committed May 2, 2024
1 parent 3b3551c commit fe0ee81
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions algo/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def run(self, data, selector='energy_func', device_id=''):
# These operators will also run when historic data is consumed and the init phase is completed based on historic timestamps
timestamp = todatetime(data['time'])
value = float(data['value'])
util.logger.debug(f'{LOG_PREFIX}: Device: {device_id} Input time: {str(timestamp)} Value: {str(data["value"])}')
util.logger.debug(f'{LOG_PREFIX}: Device: {device_id} Input time: {str(data["time"])} Value: {str(data["value"])}')

value = {
"type": False,
Expand Down Expand Up @@ -142,8 +142,6 @@ def run(self, data, selector='energy_func', device_id=''):
if anomalies_found:
return anomalies_found



def stop(self):
for device, device_detector in self.device_detectors.items():
util.logger.info(f"Stop Anomaly Detector for device: {device}")
Expand Down

0 comments on commit fe0ee81

Please sign in to comment.