Add sent message logging

This commit is contained in:
Théophile Bastian 2024-03-01 15:17:39 +01:00
parent 9a80d644d2
commit fe0ed2b5d4

View file

@ -25,3 +25,4 @@ def signal_send(recipients: list[str], message: str) -> None:
str_payload = json.dumps(payload).encode("utf-8") str_payload = json.dumps(payload).encode("utf-8")
logger.debug("Sending payload: %s", str_payload) logger.debug("Sending payload: %s", str_payload)
signal_json.send(str_payload) signal_json.send(str_payload)
logger.info("Sent messages to %s", ", ".join(recipients))