Skip to content
Snippets Groups Projects
Unverified Commit 1db9282d authored by Patrick Cloke's avatar Patrick Cloke Committed by GitHub
Browse files

Fix formatting string when oEmbed errors occur. (#11061)

parent 333d6f4e
No related branches found
No related tags found
No related merge requests found
Fix a bug introduced in Synapse v1.44.0 when logging errors during oEmbed processing.
......@@ -191,7 +191,7 @@ class OEmbedProvider:
except Exception as e:
# Trap any exception and let the code follow as usual.
logger.warning(f"Error parsing oEmbed metadata from {url}: {e:r}")
logger.warning("Error parsing oEmbed metadata from %s: %r", url, e)
open_graph_response = {}
cache_age = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment