Skip to content
Snippets Groups Projects
Commit 07854e73 authored by Nathaniel Kofalt's avatar Nathaniel Kofalt Committed by Gunnar Schaefer
Browse files

Remove logging from hot loop

parent bf22dffa
No related branches found
No related tags found
No related merge requests found
......@@ -321,8 +321,9 @@ def receive_stream_and_validate(stream, filepath, received_md5):
filesize = 0
start_time = datetime.datetime.utcnow()
with open(filepath, 'wb') as fd:
print 'Hashing uploaded file...'
for chunk in iter(lambda: stream.read(2**20), ''):
print 'received ' + hrsize(filesize)
# print 'received ' + hrsize(filesize)
md5.update(chunk)
sha1.update(chunk)
filesize += len(chunk)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment