mirror of
https://github.com/craigerl/aprsd.git
synced 2025-09-05 14:47:53 -04:00
Small cleanup on packet logging
This patch reduces some of the leading whitespace to the message/packet logging to the log file.
This commit is contained in:
parent
d3dd08714b
commit
96cc07d15f
@ -542,37 +542,27 @@ def log_message(
|
|||||||
|
|
||||||
log_list = [""]
|
log_list = [""]
|
||||||
if retry_number:
|
if retry_number:
|
||||||
# LOG.info(" {} _______________(TX:{})".format(header, retry_number))
|
log_list.append(f"{header} _______________(TX:{retry_number})")
|
||||||
log_list.append(f" {header} _______________(TX:{retry_number})")
|
|
||||||
else:
|
else:
|
||||||
# LOG.info(" {} _______________".format(header))
|
log_list.append(f"{header} _______________")
|
||||||
log_list.append(f" {header} _______________")
|
|
||||||
|
|
||||||
# LOG.info(" Raw : {}".format(raw))
|
log_list.append(f" Raw : {raw}")
|
||||||
log_list.append(f" Raw : {raw}")
|
|
||||||
|
|
||||||
if packet_type:
|
if packet_type:
|
||||||
# LOG.info(" Packet : {}".format(packet_type))
|
log_list.append(f" Packet : {packet_type}")
|
||||||
log_list.append(f" Packet : {packet_type}")
|
|
||||||
if tocall:
|
if tocall:
|
||||||
# LOG.info(" To : {}".format(tocall))
|
log_list.append(f" To : {tocall}")
|
||||||
log_list.append(f" To : {tocall}")
|
|
||||||
if fromcall:
|
if fromcall:
|
||||||
# LOG.info(" From : {}".format(fromcall))
|
log_list.append(f" From : {fromcall}")
|
||||||
log_list.append(f" From : {fromcall}")
|
|
||||||
|
|
||||||
if ack:
|
if ack:
|
||||||
# LOG.info(" Ack : {}".format(ack))
|
log_list.append(f" Ack : {ack}")
|
||||||
log_list.append(f" Ack : {ack}")
|
|
||||||
else:
|
else:
|
||||||
# LOG.info(" Message : {}".format(message))
|
log_list.append(f" Message : {message}")
|
||||||
log_list.append(f" Message : {message}")
|
|
||||||
if msg_num:
|
if msg_num:
|
||||||
# LOG.info(" Msg number : {}".format(msg_num))
|
log_list.append(f" Msg number : {msg_num}")
|
||||||
log_list.append(f" Msg number : {msg_num}")
|
|
||||||
if uuid:
|
if uuid:
|
||||||
log_list.append(f" UUID : {uuid}")
|
log_list.append(f" UUID : {uuid}")
|
||||||
# LOG.info(" {} _______________ Complete".format(header))
|
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…
x
Reference in New Issue
Block a user