Skip to content

Commit

Permalink
feat: Added raw members progress logs!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed Dec 8, 2024
1 parent 07f34c0 commit 20a0222
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dags/analyzer_helper/discourse/transform_raw_members.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ def transform(self, raw_members: list) -> list:
"""
transformed_members = []

for member in raw_members:
for idx, member in enumerate(raw_members):
try:
transformed_member = self.transform_member(member=member)
transformed_members.append(transformed_member)

logging.info(f"Preparing raw members: {idx + 1}/{len(raw_members)}")
except Exception as e:
logging.error(f"Error transforming raw discourse member {member}: {e}")

Expand Down

0 comments on commit 20a0222

Please sign in to comment.