add reply debug logging

This commit is contained in:
fti7 2024-07-22 20:53:04 +02:00
parent de1f9079c0
commit 3839b050b9

View file

@ -16,12 +16,18 @@ def send_message(message, destination, interface):
max_payload_size = 200
for i in range(0, len(message), max_payload_size):
chunk = message[i:i + max_payload_size]
interface.sendText(
try:
d = interface.sendText(
text=chunk,
destinationId=destination,
wantAck=False,
wantResponse=False
)
logging.info(f"REPLY SEND ID={d.id}")
except Exception as e:
logging.info(f"REPLY SEND ERROR {e.message}")
time.sleep(2)