Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Better warning in logs when we fail to fetch an alias #15922

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Better warning in logs when we fail to fetch an alias
MadLittleMods committed Jul 11, 2023
commit 205bf888242ddefbeec61a47691e47693b4f12d2
4 changes: 3 additions & 1 deletion synapse/handlers/directory.py
Original file line number Diff line number Diff line change
@@ -277,7 +277,9 @@ async def get_association(self, room_alias: RoomAlias) -> JsonDict:
except RequestSendFailed:
raise SynapseError(502, "Failed to fetch alias")
except CodeMessageException as e:
logging.warning("Error retrieving alias")
logging.warning(
"Error retrieving alias %s -> %s %s", room_alias, e.code, e.msg
)
if e.code == 404:
fed_result = None
else: