From 009bbe456e122338169b9b5d1c70cc50244a96b6 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 21 Dec 2022 17:38:14 -0500 Subject: [PATCH] Always `.error()` log unknown queries for `marketstore` --- piker/data/marketstore.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/piker/data/marketstore.py b/piker/data/marketstore.py index d354f9b0..88553af7 100644 --- a/piker/data/marketstore.py +++ b/piker/data/marketstore.py @@ -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: