Add logging
This commit is contained in:
parent
c75e2e7140
commit
b4125a9d73
2 changed files with 2 additions and 2 deletions
|
|
@ -46,6 +46,5 @@ if __name__ == '__main__':
|
|||
for progress in encrypt(args.infile):
|
||||
pbar.update(progress)
|
||||
else:
|
||||
for _progress in encrypt(args.infile):
|
||||
pass
|
||||
*encrypt(args.infile),
|
||||
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ def download(file_id, token, filename):
|
|||
response.headers['Content-Range'] = f'bytes {range_start}-{range_end}/{size}'
|
||||
response.headers['Content-Length'] = range_end - range_start + 1
|
||||
|
||||
print(f'{request.remote_addr}: {file_id} OK')
|
||||
response.headers['Accept-Ranges'] = 'bytes'
|
||||
response.headers['Content-Disposition'] = f'attachment {filename}'
|
||||
return response
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue