mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-29 21:56:11 -05:00
Merge pull request #4847 from matrix-org/erikj/fix_stacktrace_keyring
Correctly log expected errors when fetching server keys
This commit is contained in:
commit
9c0e6e8e7c
1
changelog.d/4847.misc
Normal file
1
changelog.d/4847.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Correctly log expected errors when fetching server keys.
|
@ -686,9 +686,9 @@ def _handle_key_deferred(verify_request):
|
|||||||
try:
|
try:
|
||||||
with PreserveLoggingContext():
|
with PreserveLoggingContext():
|
||||||
_, key_id, verify_key = yield verify_request.deferred
|
_, key_id, verify_key = yield verify_request.deferred
|
||||||
except (IOError, RequestSendFailed) as e:
|
except KeyLookupError as e:
|
||||||
logger.warn(
|
logger.warn(
|
||||||
"Got IOError when downloading keys for %s: %s %s",
|
"Failed to download keys for %s: %s %s",
|
||||||
server_name, type(e).__name__, str(e),
|
server_name, type(e).__name__, str(e),
|
||||||
)
|
)
|
||||||
raise SynapseError(
|
raise SynapseError(
|
||||||
|
Loading…
Reference in New Issue
Block a user