From ed0d1b96973dc0a58785d470c7ecd50b72e95ae1 Mon Sep 17 00:00:00 2001 From: kcho Date: Mon, 18 Oct 2021 07:42:19 -0400 Subject: [PATCH] feat: minor updates following Tashrif's comments --- lochness/transfer/__init__.py | 10 +++++----- scripts/lochness_create_template.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lochness/transfer/__init__.py b/lochness/transfer/__init__.py index 7dc012a0..4e657d35 100644 --- a/lochness/transfer/__init__.py +++ b/lochness/transfer/__init__.py @@ -352,11 +352,11 @@ def lochness_to_lochness_transfer_s3_protected(Lochness): {source_directory}/ \ s3://{s3_bucket_name}/{s3_phoenix_root_dtype}' - print(f'Executing aws s3 sync function for {source_directory}') - print(re.sub(r'\s+', r' ', command)) - print(os.popen(command).read()) - - print('aws rsync completed') + logger.debug('Executing aws s3 sync function for ' + f'{source_directory}') + logger.debug(re.sub(r'\s+', r' ', command)) + logger.debug(os.popen(command).read()) + logger.debug('aws rsync completed') def lochness_to_lochness_transfer_receive_sftp(Lochness): diff --git a/scripts/lochness_create_template.py b/scripts/lochness_create_template.py index e8f067a8..cb2f084d 100755 --- a/scripts/lochness_create_template.py +++ b/scripts/lochness_create_template.py @@ -498,7 +498,7 @@ def get_arguments(): default=False, nargs='+', help='List of dtypes from protected root to transfer ' - 'using s3') + 'using s3 rsync') parser.add_argument('-lsr', '--lochness_sync_receive', default=False, action='store_true',