Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mbthornton-lbl committed Dec 10, 2024
1 parent 1796d55 commit 34574c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nmdc_automation/import_automation/activity_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def process_files(files: Union[str, List[str]], data_object_dict: Dict, workflow
# Process unique data objects
if unique:
for file in map(str, self.project_files):
logger.info(f"Processing file {file}")
if re.search(data_object_spec["import_suffix"], file):
workflow_execution_id = self.get_workflow_execution_id(data_object_spec["output_of"])
db.data_object_set.append(process_files(file, data_object_spec, workflow_execution_id))
Expand Down Expand Up @@ -242,6 +243,8 @@ def map_workflow_executions(self, db) -> nmdc.Database:
logging.error(
f"Skipping {workflow['Name']} due to missing inputs or outputs"
)
logger.error(f"Inputs: {has_inputs_list}")
logger.error(f"Outputs: {has_output_list}")
continue
# Mint an ID if needed
wf_id = self.workflow_execution_ids.get(workflow["Type"], None)
Expand Down

0 comments on commit 34574c8

Please sign in to comment.