From cc624d35c0c45b8d1986dceed074a93b64535236 Mon Sep 17 00:00:00 2001 From: Vasileios Karakasis Date: Tue, 17 Dec 2024 15:53:56 +0100 Subject: [PATCH] Address PR comments --- reframe/frontend/reporting/storage.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/reframe/frontend/reporting/storage.py b/reframe/frontend/reporting/storage.py index e4e370eb2..f8bd8584b 100644 --- a/reframe/frontend/reporting/storage.py +++ b/reframe/frontend/reporting/storage.py @@ -243,7 +243,9 @@ def _extract_sess_info(s): @time_function def _mass_json_decode(json_objs): data = '[' + ','.join(json_objs) + ']' - getlogger().debug(f'decoding {len(data)} bytes') + getlogger().debug( + f'decoding JSON raw data of length {len(data)}' + ) return json.loads(data) session_infos = {} @@ -254,10 +256,10 @@ def _mass_json_decode(json_objs): # Find the UUIDs to decode fully by inspecting only the session info uuids = [] - for info in _mass_json_decode(session_infos.values()): + for sess_info in _mass_json_decode(session_infos.values()): try: - if self._db_filter_json(sess_filter, info): - uuids.append(info['uuid']) + if self._db_filter_json(sess_filter, sess_info): + uuids.append(sess_info['uuid']) except Exception: continue