Remove log error for .well-known/matrix/client (#4972)

pull/5005/merge
Michael Kaye 2019-04-24 17:44:06 +01:00 committed by Richard van der Hoff
parent 6b2b9a58c4
commit 788163e204
2 changed files with 2 additions and 1 deletions

1
changelog.d/4972.misc Normal file
View File

@ -0,0 +1 @@
Reduce log level of .well-known/matrix/client responses.

View File

@ -68,6 +68,6 @@ class WellKnownResource(Resource):
request.setHeader(b"Content-Type", b"text/plain") request.setHeader(b"Content-Type", b"text/plain")
return b'.well-known not available' return b'.well-known not available'
logger.error("returning: %s", r) logger.debug("returning: %s", r)
request.setHeader(b"Content-Type", b"application/json") request.setHeader(b"Content-Type", b"application/json")
return json.dumps(r).encode("utf-8") return json.dumps(r).encode("utf-8")