Add debug logging of json payload

This commit is contained in:
Théophile Bastian 2024-03-01 15:05:08 +01:00
parent 38fbf813d2
commit f5a212cc71

View file

@ -22,4 +22,6 @@ def signal_send(recipients: list[str], message: str) -> None:
"params": {"message": message, **to_dest(recipient)}, "params": {"message": message, **to_dest(recipient)},
"id": random.randint(0, (1 << 24)), "id": random.randint(0, (1 << 24)),
} }
signal_json.send(json.dumps(payload).encode("utf-8")) str_payload = json.dumps(payload).encode("utf-8")
logger.debug("Sending payload: %s", str_payload)
signal_json.send(str_payload)