chore(alerts): changed log message

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

View file

@ -201,7 +201,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']}")