Skip to content

Commit

Permalink
move log statement out of while-loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mgor committed Nov 14, 2024
1 parent c2f9782 commit e588279
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grizzly_extras/async_message/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def async_message_request(client: ztypes.Socket, request: AsyncMessageRequest) -

response.update({'success': False, 'message': msg})
break
finally:
delta = perf_counter() - start
logger.debug('async_message_request::recv_json took %f seconds for request_id %s, after %d retries', delta, request['request_id'], count)

delta = perf_counter() - start
logger.debug('async_message_request::recv_json took %f seconds for request_id %s, after %d retries', delta, request['request_id'], count)

if response is None:
msg = 'no response'
Expand Down

0 comments on commit e588279

Please sign in to comment.