forked from MirrorHub/synapse
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
1 changed files with 2 additions and 3 deletions
|
@ -78,9 +78,8 @@ class ApplicationServiceApi(SimpleHttpClient):
|
||||||
try:
|
try:
|
||||||
response = yield self.get_json(uri, fields)
|
response = yield self.get_json(uri, fields)
|
||||||
defer.returnValue(response)
|
defer.returnValue(response)
|
||||||
except Exception:
|
except Exception as ex:
|
||||||
# TODO: would be noisy to log lookup failures, but we want to log
|
logger.warning("query_3pu to %s threw exception %s", uri, ex)
|
||||||
# other things. Hrm.
|
|
||||||
defer.returnValue([])
|
defer.returnValue([])
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
|
|
Loading…
Reference in a new issue