Skip to content

Commit f5eb8ec

Browse files
committed
logging(debug): show information about layer when uploading
1 parent 940718c commit f5eb8ec

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/python_gardenlinux_lib/oras/registry.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,14 @@ def push_image_manifest(
598598
if annotations_input:
599599
layer["annotations"].update(annotations_input)
600600
manifest_image["layers"].append(layer)
601-
601+
logger.debug("Layer:")
602+
logger.debug(layer)
603+
logger.debug("---------")
604+
logger.debug(f"Currentl total size: {total_size}")
605+
logger.debug(f"File Size of {file_path}: {os.path.get_size()}")
606+
logger.debug(f"File get modification time of {file_path}: {os.path.getmtime()}")
607+
logger.debug(f"File get creation time of {file_path}: {os.path.getctime()}")
608+
logger.debug("---------")
602609
response = self.upload_blob(file_path, self.container, layer)
603610
self._check_200_response(response)
604611
if cleanup_blob and os.path.exists(file_path):

0 commit comments

Comments
 (0)