Add outgoing message contents and destination to logging

This commit is contained in:
nagumii 2024-09-24 13:45:33 +03:00
parent 5e06ab1e3f
commit f7b1d49515

View File

@ -23,7 +23,8 @@ def send_message(message, destination, interface):
wantAck=False, wantAck=False,
wantResponse=False wantResponse=False
) )
logging.info(f"REPLY SEND ID={d.id}") destid = get_node_id_from_num(destination, interface)
logging.info(f"Sending message \"{chunk.replace("\n", "\\n")}\" to {destid} ({get_node_short_name(destid, interface)}). REPLY SEND ID={d.id}.")
except Exception as e: except Exception as e:
logging.info(f"REPLY SEND ERROR {e.message}") logging.info(f"REPLY SEND ERROR {e.message}")