Skip to content

Commit 5b0907a

Browse files
authored
Update anomaly_detector.py
1 parent 0ba14c2 commit 5b0907a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scraping/scraping/dummy-kafka-project/anomaly_detector.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,8 @@ def process_message(self, message):
144144
self.send_result(result)
145145

146146
if anomaly_result.get('is_anomaly', False):
147-
severity = anomaly_result.get('severity', 'UNKNOWN')
148147
explanation = anomaly_result.get('explanation', 'No explanation provided')
149-
self.logger.warning(f"ANOMALY DETECTED ({severity}): {explanation}")
148+
self.logger.warning(f"ANOMALY DETECTED: {explanation}")
150149

151150
return True
152151
except Exception as e:

0 commit comments

Comments
 (0)