1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-09-26 23:26:38 -04: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: 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))