Add debug logging of json payload
This commit is contained in:
parent
38fbf813d2
commit
f5a212cc71
1 changed files with 3 additions and 1 deletions
|
@ -22,4 +22,6 @@ def signal_send(recipients: list[str], message: str) -> None:
|
|||
"params": {"message": message, **to_dest(recipient)},
|
||||
"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)
|
||||
|
|
Loading…
Reference in a new issue