Skip to content

Commit

Permalink
Clean up the logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jbusecke committed Sep 26, 2024
1 parent ab188c8 commit 955ccf3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions feedstock/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,17 @@ def transfer(self, source_store) -> str:
source = os.path.join(source_bucket, source_prefix, store_name).rstrip('/')
target = os.path.join(target_bucket, target_prefix, store_name).rstrip('/')


copy_proc = subprocess.run(
f'rclone copy -vv -P "{source}/" "{target}/"',
shell=True, #consider false
capture_output=True, #set to false once we have this working!
text=True,
)
logger.warning(f"COPY STDOUT:{copy_proc.stdout}")
logger.warning(f"COPY STDERR:{copy_proc.stderr}")
logger.warning(copy_proc.stderr)
copy_proc.check_returncode()
logger.warning(copy_proc)
del copy_proc

del client
return self.target_store
Expand Down

0 comments on commit 955ccf3

Please sign in to comment.