Skip to content

Commit bc47bb6

Browse files
committed
Only print failed decode traceback to debug
1 parent 46a31ce commit bc47bb6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

horusdemodlib/uploader.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,10 @@ def main():
271271
_temp_packet.pop('packet_format')
272272
_temp_packet.pop('ukhas_str')
273273
logging.debug(f"Binary Packet Contents: {_temp_packet}")
274+
274275
except Exception as e:
275-
logging.error(f"Decode Failed: {traceback.format_exc()}")
276+
logging.error(f"Decode Failed: {e}")
277+
logging.debug(f"Traceback: {traceback.format_exc()}")
276278

277279
except KeyboardInterrupt:
278280
logging.info("Caught CTRL-C, exiting.")

0 commit comments

Comments
 (0)