From 32c48a8bbc691705dc163e99f77b6e6c9e5c7eb2 Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Fri, 18 Oct 2024 09:27:47 +0100 Subject: [PATCH] add logs --- src/nwp_consumer/internal/service/consumer.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nwp_consumer/internal/service/consumer.py b/src/nwp_consumer/internal/service/consumer.py index 50b67037..3d5a2a4f 100644 --- a/src/nwp_consumer/internal/service/consumer.py +++ b/src/nwp_consumer/internal/service/consumer.py @@ -409,6 +409,9 @@ def _generate_encoding(ds: xr.Dataset) -> dict[str, dict[str, str] | dict[str, B def _dataQualityFilter(ds: xr.Dataset) -> bool: """Filter out data that is not of sufficient quality.""" + + log.info(event="Checking data quality") + if ds == xr.Dataset(): return False @@ -421,6 +424,8 @@ def _dataQualityFilter(ds: xr.Dataset) -> bool: variable=data_var, ) + log.info(event="Checking data quality: Complete") + return True