From f0d600e5d74080ed0a9d031755517232cf79ed0b Mon Sep 17 00:00:00 2001 From: l5y <220195275+l5yth@users.noreply.github.com> Date: Sat, 4 Oct 2025 20:53:54 +0200 Subject: [PATCH] Improve stored message debug logging (#211) --- data/mesh.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/data/mesh.py b/data/mesh.py index 658b719..a866425 100644 --- a/data/mesh.py +++ b/data/mesh.py @@ -1298,8 +1298,14 @@ def store_packet_dict(p: dict): _queue_post_json("/api/messages", msg, priority=_MESSAGE_POST_PRIORITY) if DEBUG: + from_label = _canonical_node_id(from_id) or from_id + to_label = _canonical_node_id(to_id) or to_id + if text is None and encrypted: + payload = "Encrypted" + else: + payload = text _debug_log( - f"stored message from {from_id!r} to {to_id!r} ch={ch} text={text!r}" + f"stored message from {from_label!r} to {to_label!r} ch={ch} text={payload!r}" )