Another threading.getName() to .name attribute

This commit is contained in:
F̷N̷ 2023-06-10 13:30:47 +07:00 committed by GitHub
parent 72600a4251
commit 3bf5346766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,7 @@ def exe(cmd):
cmd_num_dict['cmd_num'] += 1
cmd_num = cmd_num_dict['cmd_num']
th_name = threading.current_thread().getName()
th_name = threading.current_thread().name
log('Executing Command-{} {} with timeout {}s in {}'.format(
cmd_num,
@ -350,7 +350,7 @@ def pop(cmd):
else:
wait_time = 30
th_name = threading.current_thread().getName()
th_name = threading.current_thread().name
log('Executing Command-{} {} with timeout {}s in {}'.format(
cmd_num,