diff --git a/docker_squash/image.py b/docker_squash/image.py index 298dc48..82127ec 100644 --- a/docker_squash/image.py +++ b/docker_squash/image.py @@ -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) diff --git a/docker_squash/v2_image.py b/docker_squash/v2_image.py index 7cd3765..861b0bd 100644 --- a/docker_squash/v2_image.py +++ b/docker_squash/v2_image.py @@ -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