chore(alerts): changed log message

This commit is contained in:
Taha Yassine Kraiem 2022-11-15 18:35:01 +01:00
parent 89e2b7e129
commit b9a0fe1d94

View file

@ -196,7 +196,7 @@ def process():
cur.execute(query)
result = cur.fetchone()
if result["valid"]:
logging.info("Valid alert, notifying users, alertId:{alert['alertId']} name: {alert['name']}")
logging.info(f"Valid alert, notifying users, alertId:{alert['alertId']} name: {alert['name']}")
notifications.append(generate_notification(alert, result))
except Exception as e:
logging.error(f"!!!Error while running alert query for alertId:{alert['alertId']} name: {alert['name']}")