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

epoch_index_backup
Tyler Goodlet 2022-12-21 17:38:14 -05:00
parent 9f37b33167
commit b2cff0af6f
1 changed files with 5 additions and 1 deletions

View File

@ -454,8 +454,12 @@ class Storage:
try:
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
log.exception(
f'Unknown mkts QUERY error: {params}\n'
f'{err.args}'
)
return {}
# TODO: it turns out column access on recarrays is actually slower: