Skip to content

Commit d908df4

Browse files
committed
Enhance AzCopy upload process: add DEBUG log level to AzCopy command for improved logging
1 parent fc8e231 commit d908df4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

function_app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ def upload_with_azcopy(local_dir):
9191
dest_url = os.environ.get('DZI_UPLOAD_DEST_URL')
9292
cmd = [
9393
"azcopy", "copy",
94-
os.path.join(local_dir, "*"),
94+
f"{local_dir}/*",
9595
dest_url,
96-
"--recursive=true"
96+
"--recursive=true",
97+
"--log-level=DEBUG"
9798
]
9899
logger.info(f"AzCopy command: azcopy copy {cmd[2]} {dest_url} --recursive=true (using SAS token)")
99100
result = subprocess.run(cmd, capture_output=True, text=True)

0 commit comments

Comments
 (0)