mirror of
https://github.com/craigerl/aprsd.git
synced 2024-11-21 15:51:52 -05:00
Tightened up the packet logging
This commit is contained in:
parent
bcc1b4e309
commit
440c8d54ad
@ -546,23 +546,23 @@ def log_message(
|
|||||||
else:
|
else:
|
||||||
log_list.append(f"{header} _______________")
|
log_list.append(f"{header} _______________")
|
||||||
|
|
||||||
log_list.append(f" Raw : {raw}")
|
log_list.append(f" Raw : {raw}")
|
||||||
|
|
||||||
if packet_type:
|
if packet_type:
|
||||||
log_list.append(f" Packet : {packet_type}")
|
log_list.append(f" Packet : {packet_type}")
|
||||||
if tocall:
|
if tocall:
|
||||||
log_list.append(f" To : {tocall}")
|
log_list.append(f" To : {tocall}")
|
||||||
if fromcall:
|
if fromcall:
|
||||||
log_list.append(f" From : {fromcall}")
|
log_list.append(f" From : {fromcall}")
|
||||||
|
|
||||||
if ack:
|
if ack:
|
||||||
log_list.append(f" Ack : {ack}")
|
log_list.append(f" Ack : {ack}")
|
||||||
else:
|
else:
|
||||||
log_list.append(f" Message : {message}")
|
log_list.append(f" Message : {message}")
|
||||||
if msg_num:
|
if msg_num:
|
||||||
log_list.append(f" Msg number : {msg_num}")
|
log_list.append(f" Msg # : {msg_num}")
|
||||||
if uuid:
|
if uuid:
|
||||||
log_list.append(f" UUID : {uuid}")
|
log_list.append(f" UUID : {uuid}")
|
||||||
log_list.append(f"{header} _______________ Complete")
|
log_list.append(f"{header} _______________ Complete")
|
||||||
|
|
||||||
LOG.info("\n".join(log_list))
|
LOG.info("\n".join(log_list))
|
||||||
|
Loading…
Reference in New Issue
Block a user