Skip to content

Commit

Permalink
added more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahannes committed Apr 15, 2024
1 parent f38b3c7 commit 439b9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algo/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def check_input(self, value, timestamp):
sample_is_anomalous, result = detector.check(value, timestamp)

if sample_is_anomalous:
util.logger.info(f"{LOG_PREFIX}: Anomaly occured: Detector={result['type']} Value={result['value']}")
result['device_id'] = self.device_id
util.logger.info(f"{LOG_PREFIX}: Anomaly occured: {result}")
anomaly_results.append(result)
return anomaly_results

Expand Down

0 comments on commit 439b9d0

Please sign in to comment.