mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-02 12:46:06 -04:00
Fix some b'abcd' noise in logs and metrics
Python 3 compatibility: make sure that we decode some byte sequences before we use them to create log lines and metrics labels.
This commit is contained in:
parent
c9c50284d7
commit
f00a9d2636
2 changed files with 8 additions and 5 deletions
|
@ -244,7 +244,10 @@ class MatrixFederationHttpClient(object):
|
|||
request_deferred,
|
||||
)
|
||||
|
||||
log_result = "%d %s" % (response.code, response.phrase,)
|
||||
log_result = "%d %s" % (
|
||||
response.code,
|
||||
response.phrase.decode('ascii', errors='replace'),
|
||||
)
|
||||
break
|
||||
except Exception as e:
|
||||
if not retry_on_dns_fail and isinstance(e, DNSLookupError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue