From 002d10709e843834c4d1d2730062b498ac8e63ce Mon Sep 17 00:00:00 2001 From: Bryan Hilbert Date: Mon, 19 Aug 2024 22:30:50 -0400 Subject: [PATCH] Add logging statements to organize_filesystem --- jwql/utils/organize_filesystem.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jwql/utils/organize_filesystem.py b/jwql/utils/organize_filesystem.py index 38b1ca13e..ee1e2ce4a 100644 --- a/jwql/utils/organize_filesystem.py +++ b/jwql/utils/organize_filesystem.py @@ -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 @@ -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