From a4c9dfcb056f621e7ce9b467d0a2c0d3b468bbcc Mon Sep 17 00:00:00 2001 From: Manoj Kumar Date: Mon, 23 Dec 2024 15:51:54 +0530 Subject: [PATCH] ODK: Changed ODK data printing log into debug log Signed-off-by: Manoj Kumar --- g2p_odk_importer/models/odk_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/g2p_odk_importer/models/odk_client.py b/g2p_odk_importer/models/odk_client.py index d3f4a185..1746a6d8 100644 --- a/g2p_odk_importer/models/odk_client.py +++ b/g2p_odk_importer/models/odk_client.py @@ -99,7 +99,7 @@ def import_delta_records(self, last_sync_timestamp=None, skip=0): ) partner_count = 0 for member in data["value"]: - _logger.info("ODK RAW DATA:%s" % member) + _logger.debug("ODK RAW DATA:%s" % member) try: mapped_json = jq.first(self.json_formatter, member) if self.target_registry == "individual": @@ -325,7 +325,7 @@ def import_record_by_instance_id(self, instance_id, last_sync_timestamp=None): _logger.exception("Failed to parse response by using instance ID: %s", e) raise ValidationError(f"Failed to parse response by using instance ID: {e}") from e - _logger.info(f"ODK RAW DATA by instance ID %s {instance_id} {data}") + _logger.debug(f"ODK RAW DATA by instance ID %s {instance_id} {data}") if last_sync_timestamp: last_sync_time = pytz.UTC.localize(last_sync_timestamp)