Always `.error()` log unknown queries for `marketstore`

samplerd_service
Tyler Goodlet 2022-12-21 17:38:14 -05:00
parent daf7b3f4a5
commit 009bbe456e
1 changed files with 5 additions and 1 deletions

View File

@ -454,8 +454,12 @@ class Storage:
try: try:
result = await client.query(params) result = await client.query(params)
except purerpc.grpclib.exceptions.UnknownError: except purerpc.grpclib.exceptions.UnknownError as err:
# indicate there is no history for this timeframe # indicate there is no history for this timeframe
log.exception(
f'Unknown mkts QUERY error: {params}\n'
f'{err.args}'
)
return {} return {}
# TODO: it turns out column access on recarrays is actually slower: # TODO: it turns out column access on recarrays is actually slower: