diff --git a/app/logger.py b/app/logger.py index a8002ad..919821b 100644 --- a/app/logger.py +++ b/app/logger.py @@ -23,7 +23,8 @@ def init_log_file(self, destination_directory): suffix = 'media_transfer_logfile.txt' filename = timestamp + suffix log_file_path = os.path.join(destination_directory, filename) - + print(f'\ndestination_directory in Logger: {destination_directory}') + print(f'\nlogfile_path in Logger: {log_file_path}') with open(log_file_path, 'w'): pass diff --git a/test/helpers.py b/test/helpers.py index b10fbcd..1bf7d24 100644 --- a/test/helpers.py +++ b/test/helpers.py @@ -18,6 +18,9 @@ DBInitializer().init_test_database() Logger().init_log_file(logfile_directory) +def plogs(): + print(f'\nlogfile_directory plogs: {logfile_directory}') + print(f'\ndestination_root_directory plogs: {destination_root_directory}') def create_files_with_desired_extensions(): for file_path in valid_source_filepaths(): diff --git a/test/test_logger.py b/test/test_logger.py index d9019e7..9cc0820 100644 --- a/test/test_logger.py +++ b/test/test_logger.py @@ -12,6 +12,7 @@ def test_init_log_file_creates_file(): logger = Logger() del logger Logger().init_log_file(logfile_directory) + plogs() assert os.path.exists(Logger().log_file_path)