Skip to content

Commit

Permalink
Add logging statements to organize_filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
bhilbert4 committed Aug 20, 2024
1 parent 36520d3 commit 002d107
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jwql/utils/organize_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def organize_filesystem():
else:
# Some filenames do not have a program_id/observation/visit structure
# Files that are not recognized by filename_parser will also end up here.
logging.warning((f'While running organize_filesystem(), {src} was not, '
'recognized by the filename_parser().'))
break

# Build complete destination location
Expand Down Expand Up @@ -101,6 +103,8 @@ def revert_filesystem():
else:
# Some filenames do not have a program_id/observation/visit structure
# Filenames not recognized by filename_parser() will also end up here.
logging.warning((f'While running revert_filesystem(), {src} was not, '
'recognized by the filename_parser().'))
break

# Build complete destination location
Expand Down

0 comments on commit 002d107

Please sign in to comment.