Skip to content

Commit

Permalink
Log responder we are using. (matrix-org#6139)
Browse files Browse the repository at this point in the history
This prevents us logging "Responding to media request with responder %s".
  • Loading branch information
michaelkaye authored and anoadragon453 committed Oct 7, 2019
1 parent 1992f21 commit dc795ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/6139.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Log responder when responding to media request.
2 changes: 1 addition & 1 deletion synapse/rest/media/v1/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def respond_with_responder(request, responder, media_type, file_size, upload_nam
respond_404(request)
return

logger.debug("Responding to media request with responder %s")
logger.debug("Responding to media request with responder %s", responder)
add_file_headers(request, media_type, file_size, upload_name)
try:
with responder:
Expand Down

0 comments on commit dc795ba

Please sign in to comment.