@@ -360,13 +360,15 @@ def apply_sync_filters(
360360
361361 messages : Messages = []
362362 for entity_name , filter_rules in filters_by_entity .items ():
363+ self .logger .info (f"Applying filters to { entity_name } " )
363364 entity = entities [entity_name ]
364365
365366 filter_column_names : list [str ] = []
366367 unmodified_entities = {entity_name : entity }
367368 modified_entities = {entity_name : entity }
368369
369370 for rule in filter_rules :
371+ self .logger .info (f"Applying filter { rule .reporting .code } " )
370372 if rule .reporting .emit == "record_failure" :
371373 column_name = f"filter_{ uuid4 ().hex } "
372374 filter_column_names .append (column_name )
@@ -412,6 +414,7 @@ def apply_sync_filters(
412414 return messages , False
413415
414416 if filter_column_names :
417+ self .logger .info (f"Filtering records where validation is record level" )
415418 success_condition = " AND " .join (
416419 [f"({ c_name } IS NOT NULL AND { c_name } )" for c_name in filter_column_names ]
417420 )
@@ -456,6 +459,7 @@ def apply_rules(self, entities: Entities, rule_metadata: RuleMetadata) -> Messag
456459 altering the entities in-place.
457460
458461 """
462+ self .logger .info ("Applying business rules" )
459463 rules_and_locals : Iterable [tuple [Rule , TemplateVariables ]]
460464 if rule_metadata .templating_strategy == "upfront" :
461465 rules_and_locals = []
@@ -472,6 +476,8 @@ def apply_rules(self, entities: Entities, rule_metadata: RuleMetadata) -> Messag
472476 rules_and_locals = rule_metadata
473477
474478 messages : Messages = []
479+
480+ self .logger .info ("Applying pre-sync steps" )
475481 for rule , local_variables in rules_and_locals :
476482 for step in rule .pre_sync_steps :
477483 if rule_metadata .templating_strategy == "runtime" :
@@ -498,6 +504,8 @@ def apply_rules(self, entities: Entities, rule_metadata: RuleMetadata) -> Messag
498504 if not success :
499505 return messages
500506
507+ self .logger .info ("Applying post-sync steps" )
508+
501509 for rule , local_variables in rules_and_locals :
502510 for step in rule .post_sync_steps :
503511 if rule_metadata .templating_strategy == "runtime" :
0 commit comments