Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug #245

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docker_squash/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ def _before_squashing(self):
"Single layer marked to squash, no squashing is required"
)

self.log.info("Attempting to squash last %s layers...", number_of_layers)
self.log.debug("Layers to squash: %s", self.layers_to_squash)
self.log.debug("Layers to move: %s", self.layers_to_move)
self.log.info(f"Attempting to squash last {number_of_layers} layers...")
self.log.debug(f"Layers to squash: {self.layers_to_squash}")
self.log.debug(f"Layers to move: {self.layers_to_move}")

# Fetch the image and unpack it on the fly to the old image directory
self._save_image(self.old_image_id, self.old_image_dir)
Expand Down
3 changes: 3 additions & 0 deletions docker_squash/v2_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def _before_squashing(self):
if self.layer_paths_to_move:
self.squash_id = self.layer_paths_to_move[-1]

self.log.debug(f"Layers paths to squash: {self.layer_paths_to_squash}")
self.log.debug(f"Layers paths to move: {self.layer_paths_to_move}")

def _squash(self):
if self.layer_paths_to_squash:
# Prepare the directory
Expand Down