diff options
author | Marcus <bubu@bubu1.eu> | 2021-02-03 22:47:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-03 16:47:30 -0500 |
commit | b0f4119b8bc8ab2da6a6f5f6480da8a0b749c768 (patch) | |
tree | e0e25b284a5715c87897a870df34e7eae23ce18b /synapse/http/federation/matrix_federation_agent.py | |
parent | Merge branch 'social_login_hotfixes' into develop (diff) | |
download | synapse-b0f4119b8bc8ab2da6a6f5f6480da8a0b749c768.tar.xz |
Add debug logging to DNS SRV requests. (#9305)
Diffstat (limited to 'synapse/http/federation/matrix_federation_agent.py')
-rw-r--r-- | synapse/http/federation/matrix_federation_agent.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/http/federation/matrix_federation_agent.py b/synapse/http/federation/matrix_federation_agent.py index 4c06a117d3..113fd47134 100644 --- a/synapse/http/federation/matrix_federation_agent.py +++ b/synapse/http/federation/matrix_federation_agent.py @@ -323,12 +323,19 @@ class MatrixHostnameEndpoint: if port or _is_ip_literal(host): return [Server(host, port or 8448)] + logger.debug("Looking up SRV record for %s", host.decode(errors="replace")) server_list = await self._srv_resolver.resolve_service(b"_matrix._tcp." + host) if server_list: + logger.debug( + "Got %s from SRV lookup for %s", + ", ".join(map(str, server_list)), + host.decode(errors="replace"), + ) return server_list # No SRV records, so we fallback to host and 8448 + logger.debug("No SRV records for %s", host.decode(errors="replace")) return [Server(host, 8448)] |