This commit is contained in:
SpudGunMan
2025-11-12 19:08:41 -08:00
parent a63020bbb7
commit a6d51e41bf
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -2043,7 +2043,11 @@ def onReceive(packet, interface):
hop = "Gateway"
if hop in ("MQTT", "Gateway") and hop_count > 0:
hop += f" {hop_count} Hops"
hop = f" {hop_count} Hops"
# Add relay node info if present
if packet.get('relayNode') is not None:
hop += f" (Relay:{packet['relayNode']})"
if enableHopLogs:
logger.debug(f"System: Packet HopDebugger: hop_away:{hop_away} hop_limit:{hop_limit} hop_start:{hop_start} calculated_hop_count:{hop_count} final_hop_value:{hop} via_mqtt:{via_mqtt} transport_mechanism:{transport_mechanism} Hostname:{rxNodeHostName}")
+5 -1
View File
@@ -398,7 +398,11 @@ def onReceive(packet, interface):
hop = "Gateway"
if hop in ("MQTT", "Gateway") and hop_count > 0:
hop += f" {hop_count} Hops"
hop = f" {hop_count} Hops"
# Add relay node info if present
if packet.get('relayNode') is not None:
hop += f" (Relay:{packet['relayNode']})"
if my_settings.enableHopLogs:
logger.debug(f"System: Packet HopDebugger: hop_away:{hop_away} hop_limit:{hop_limit} hop_start:{hop_start} calculated_hop_count:{hop_count} final_hop_value:{hop} via_mqtt:{via_mqtt} transport_mechanism:{transport_mechanism} Hostname:{rxNodeHostName}")