Skip to content

Commit

Permalink
logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
silil committed Oct 26, 2023
1 parent 918affb commit bb95c8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/triage/component/architect/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,10 +588,12 @@ def remove_unnecessary_files(self, filenames, path_, matrix_uuid):
# deleting features and label csvs
for filename_ in filenames:
cmd_line = 'rm ' + filename_
logger.debug(f"removing files with command {cmd_line}")
subprocess.run(cmd_line, shell=True)

# deleting the merged csv
cmd_line = 'rm ' + path_ + "/" + matrix_uuid + '.csv'
logger.debug(f"removing stitched csv with command {cmd_line}")
subprocess.run(cmd_line, shell=True)


1 change: 1 addition & 0 deletions src/triage/component/architect/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,5 +321,6 @@ def generate_list_of_files_to_remove(filenames, matrix_uuid):
# adding fixed files
rm_files.append(prefix + "_fixed.csv")

logger.debug(f"Files to be removed {rm_files}")
return rm_files

0 comments on commit bb95c8b

Please sign in to comment.