From f7b1d49515ec3029d184f6ed5cc236e941a6f9fe Mon Sep 17 00:00:00 2001 From: nagumii Date: Tue, 24 Sep 2024 13:45:33 +0300 Subject: [PATCH] Add outgoing message contents and destination to logging --- utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index a6f9bc4..8d3784a 100644 --- a/utils.py +++ b/utils.py @@ -23,7 +23,8 @@ def send_message(message, destination, interface): wantAck=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: logging.info(f"REPLY SEND ERROR {e.message}")