Skip to content

Commit

Permalink
log fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strasserle committed Jan 27, 2025
1 parent e0c994c commit cb73e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def log_request():
if (request.content_type.startswith('multipart/form-data')):
body = {'args': request.args.to_dict(),
'form': request.form.to_dict(),
'files': {k: f'{v.read(1000)}...' for k, v in request.files.items()}
'files': {k: f'{v.read(1000)}...{v.seek(0)}' for k, v in request.files.items()}
}
else:
body = request.get_data(as_text=True)
Expand Down

0 comments on commit cb73e95

Please sign in to comment.