Skip to content

Commit

Permalink
Add #90 real-time debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
curzon01 committed Oct 15, 2024
1 parent d99a393 commit ebae936
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions decode-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4331,6 +4331,9 @@ def on_message(client, userdata, msg):
except:
pass

if ARGS.debug:
print("{}: on_message - use_base64={}, file_id={}, rcv_id={}, file_type={}, file_size={}, file_md5={}, in_hash_md5={}".format(datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f"), use_base64, file_id, rcv_id, file_type, file_size, file_md5, in_hash_md5.hexdigest()))

if dobj is None and file_id == 0 and rcv_id > 0 and file_size > 0 and file_type > 0 and file_name:
file_id = rcv_id
dobj = bytearray()
Expand Down

0 comments on commit ebae936

Please sign in to comment.