mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-17 18:44:21 -05:00
Since empty lookups now return 200/empty list not 404, we can safely log failures as exceptions
This commit is contained in:
parent
3856582741
commit
718ffcf8bb
@ -78,9 +78,8 @@ class ApplicationServiceApi(SimpleHttpClient):
|
||||
try:
|
||||
response = yield self.get_json(uri, fields)
|
||||
defer.returnValue(response)
|
||||
except Exception:
|
||||
# TODO: would be noisy to log lookup failures, but we want to log
|
||||
# other things. Hrm.
|
||||
except Exception as ex:
|
||||
logger.warning("query_3pu to %s threw exception %s", uri, ex)
|
||||
defer.returnValue([])
|
||||
|
||||
@defer.inlineCallbacks
|
||||
|
Loading…
Reference in New Issue
Block a user