Skip to content

Commit

Permalink
fix logging problem
Browse files Browse the repository at this point in the history
Signed-off-by: Romeo Kienzler <romeo.kienzler1@ibm.com>
  • Loading branch information
romeokienzler committed Feb 20, 2024
1 parent d449b32 commit 8d7bcd6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions component-library/output/upload-to-cos.ipynb
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "af0a5a86-e19a-44e4-963d-0f3c63ba92d6",
"metadata": {},
"source": [
"# output-upload-to-cos"
]
},
{
"cell_type": "markdown",
"id": "53af08cf-0149-4369-93d6-fba2203ec6cc",
Expand All @@ -21,6 +13,14 @@
},
"tags": []
},
"source": [
"# output-upload-to-cos"
]
},
{
"cell_type": "markdown",
"id": "360d1180",
"metadata": {},
"source": [
"Uploads a file to any S3 compliant Cloud Object Storage"
]
Expand Down Expand Up @@ -163,9 +163,9 @@
" target_path = source_file \n",
" if process_target_file_pattern is not None:\n",
" target_path = re.sub(re.compile(process_target_file_pattern), \"\", source_file)\n",
" print(f'Adjusting target path {source_file} to: {target_path}')\n",
" logging.debug(f'Adjusting target path {source_file} to: {target_path}')\n",
" final_destination = f'{target}{target_path}'.replace('//','/')\n",
" print(f'Uploading {source_file} to {final_destination}')\n",
" logging.debug(f'Uploading {source_file} to {final_destination}')\n",
" s3.put(source_file, final_destination)"
]
}
Expand Down

0 comments on commit 8d7bcd6

Please sign in to comment.