Skip to content

Commit

Permalink
Merge pull request #99 from jeremiah-k/meshtastic_utils-logging
Browse files Browse the repository at this point in the history
meshtastic_utils logging adjustment
  • Loading branch information
jeremiah-k authored Nov 23, 2024
2 parents 6ef056a + c33ac5d commit 29b2946
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meshtastic_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,9 @@ def on_meshtastic_message(packet, interface):
loop = event_loop

sender = packet.get("fromId", packet.get("from"))

if sender is None:
logger.warning("Sender ID is None. Using 'Unknown' as sender.")
# Sender ID is None. Using 'Unknown' as sender.")
sender = 'Unknown'

decoded = packet.get("decoded", {})
Expand Down

0 comments on commit 29b2946

Please sign in to comment.