Skip to content

Commit

Permalink
Log request message for each chunk in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hackermd committed Jul 3, 2020
1 parent 130eb21 commit 33821ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dicomweb_client/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1428,6 +1428,7 @@ def _http_post(
'''
def serve_data_chunks(data):
for i, offset in enumerate(range(0, len(data), self._chunk_size)):
logger.debug(f'serve data chunk #{i}')
end = offset + self._chunk_size
yield data[offset:end]

Expand Down

0 comments on commit 33821ab

Please sign in to comment.