Skip to content

Commit

Permalink
Add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rnc committed Mar 5, 2024
1 parent 4591dff commit f72af8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
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

0 comments on commit f72af8a

Please sign in to comment.