Skip to content

Commit

Permalink
ODK: Changed ODK data printing log into debug log
Browse files Browse the repository at this point in the history
Signed-off-by: Manoj Kumar <[email protected]>
  • Loading branch information
mkumar-02 committed Dec 23, 2024
1 parent e686815 commit a4c9dfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions g2p_odk_importer/models/odk_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a4c9dfc

Please sign in to comment.