Fix some error log lines that lead to confusion.

In the past those log lines often were referenced for issues but they
are no real issues.
Either they are just deprecated code running or expected.
This commit is contained in:
Timo K
2026-01-19 12:10:18 +01:00
parent 27e351270c
commit a102b3f4aa
6 changed files with 62 additions and 29 deletions

View File

@@ -335,17 +335,23 @@ async function makeTransport(
// MSC4143: Attempt to fetch transports from backend.
if ("_unstable_getRTCTransports" in client) {
try {
const selectedTransport = await getFirstUsableTransport(
await client._unstable_getRTCTransports(),
);
const transportList = await client._unstable_getRTCTransports();
const selectedTransport = await getFirstUsableTransport(transportList);
if (selectedTransport) {
logger.info("Using backend-configured SFU", selectedTransport);
logger.info(
"Using backend-configured (client.getRTCTransports) SFU",
selectedTransport,
);
return selectedTransport;
}
} catch (ex) {
if (ex instanceof MatrixError && ex.httpStatus === 404) {
// Expected, this is an unstable endpoint and it's not required.
logger.debug("Backend does not provide any RTC transports", ex);
logger.debug(
"Backend does not provide any RTC transports (will retry with well-known.)",
"Your server admin needs to update the matrix homeserver.",
"(The 404 erros in the console above are expectet to check if synapse supports the endpoint.)",
);
} else if (ex instanceof FailToGetOpenIdToken) {
throw ex;
} else {