feat: Improve error logging
This commit is contained in:
8
main.py
8
main.py
@@ -163,9 +163,9 @@ def main():
|
|||||||
print(f"Different {len(different_files)} files")
|
print(f"Different {len(different_files)} files")
|
||||||
|
|
||||||
for key in tqdm.tqdm(new_files.union(different_files)):
|
for key in tqdm.tqdm(new_files.union(different_files)):
|
||||||
|
source_object = os.path.join(source_prefix, key)
|
||||||
|
target_object = os.path.join(target_prefix, key)
|
||||||
try:
|
try:
|
||||||
source_object = os.path.join(source_prefix, key)
|
|
||||||
target_object = os.path.join(target_prefix, key)
|
|
||||||
logging.info(
|
logging.info(
|
||||||
f"Moving {source_bucket}:{source_object} to "
|
f"Moving {source_bucket}:{source_object} to "
|
||||||
f"{target_bucket}:{target_object}"
|
f"{target_bucket}:{target_object}"
|
||||||
@@ -180,8 +180,8 @@ def main():
|
|||||||
except RetryError:
|
except RetryError:
|
||||||
logging.warning(
|
logging.warning(
|
||||||
"Retry on moving"
|
"Retry on moving"
|
||||||
"{source_bucket}:{source_object} to "
|
f"{source_bucket}:{source_object} to "
|
||||||
"{target_bucket}:{target_object}"
|
f"{target_bucket}:{target_object}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user