mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
updated logging
This commit is contained in:
parent
6efde55a3b
commit
4d605106c8
|
@ -1048,7 +1048,7 @@ class DATA:
|
||||||
self.rx_start_of_transmission, len(ARQ.rx_frame_buffer)
|
self.rx_start_of_transmission, len(ARQ.rx_frame_buffer)
|
||||||
)
|
)
|
||||||
self.log.info("[TNC] ARQ | RX | DATA FRAME SUCCESSFULLY RECEIVED", nacks=self.frame_nack_counter,
|
self.log.info("[TNC] ARQ | RX | DATA FRAME SUCCESSFULLY RECEIVED", nacks=self.frame_nack_counter,
|
||||||
bytesperminute=ARQ.bytes_per_minute, total_bytes=ARQ.total_bytes, duration=duration, signed=signed)
|
bytesperminute=ARQ.bytes_per_minute, total_bytes=ARQ.total_bytes, duration=duration, hmac_signed=signed)
|
||||||
|
|
||||||
# Decompress the data frame
|
# Decompress the data frame
|
||||||
data_frame_decompressed = lzma.decompress(data_frame)
|
data_frame_decompressed = lzma.decompress(data_frame)
|
||||||
|
@ -1144,7 +1144,7 @@ class DATA:
|
||||||
dxgrid=str(Station.dxgrid, "UTF-8"),
|
dxgrid=str(Station.dxgrid, "UTF-8"),
|
||||||
data=base64_data,
|
data=base64_data,
|
||||||
irs=helpers.bool_to_string(self.is_IRS),
|
irs=helpers.bool_to_string(self.is_IRS),
|
||||||
signed=signed
|
hmac_signed=signed
|
||||||
)
|
)
|
||||||
|
|
||||||
if TNC.enable_stats:
|
if TNC.enable_stats:
|
||||||
|
|
|
@ -784,7 +784,7 @@ class ThreadedTCPRequestHandler(socketserver.StreamRequestHandler):
|
||||||
try:
|
try:
|
||||||
log.info("[SCK] [HMAC] Looking for salt/token", local=mycallsign, remote=dxcallsign)
|
log.info("[SCK] [HMAC] Looking for salt/token", local=mycallsign, remote=dxcallsign)
|
||||||
hmac_salt = helpers.get_hmac_salt(dxcallsign, mycallsign)
|
hmac_salt = helpers.get_hmac_salt(dxcallsign, mycallsign)
|
||||||
log.info("[SCK] [HMAC] Salt found", local=mycallsign, remote=dxcallsign, salt=hmac_salt)
|
log.info("[SCK] [HMAC] Salt info", local=mycallsign, remote=dxcallsign, salt=hmac_salt)
|
||||||
except Exception:
|
except Exception:
|
||||||
log.warning("[SCK] [HMAC] No salt/token found")
|
log.warning("[SCK] [HMAC] No salt/token found")
|
||||||
hmac_salt = ''
|
hmac_salt = ''
|
||||||
|
|
Loading…
Reference in a new issue