1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-12 11:26:13 -05:00

Tightened up the packet logging

This commit is contained in:
Hemna 2021-12-07 15:00:38 -05:00
parent bcc1b4e309
commit 440c8d54ad

View File

@ -546,23 +546,23 @@ def log_message(
else:
log_list.append(f"{header} _______________")
log_list.append(f" Raw : {raw}")
log_list.append(f" Raw : {raw}")
if packet_type:
log_list.append(f" Packet : {packet_type}")
log_list.append(f" Packet : {packet_type}")
if tocall:
log_list.append(f" To : {tocall}")
log_list.append(f" To : {tocall}")
if fromcall:
log_list.append(f" From : {fromcall}")
log_list.append(f" From : {fromcall}")
if ack:
log_list.append(f" Ack : {ack}")
log_list.append(f" Ack : {ack}")
else:
log_list.append(f" Message : {message}")
log_list.append(f" Message : {message}")
if msg_num:
log_list.append(f" Msg number : {msg_num}")
log_list.append(f" Msg # : {msg_num}")
if uuid:
log_list.append(f" UUID : {uuid}")
log_list.append(f" UUID : {uuid}")
log_list.append(f"{header} _______________ Complete")
LOG.info("\n".join(log_list))