Skip to content

Commit 68293fd

Browse files
authored
Merge pull request #245 from rnc/LOGGING
Add debug
2 parents fec66e1 + f72af8a commit 68293fd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docker_squash/image.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ def _before_squashing(self):
220220
"Single layer marked to squash, no squashing is required"
221221
)
222222

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

227227
# Fetch the image and unpack it on the fly to the old image directory
228228
self._save_image(self.old_image_id, self.old_image_dir)

docker_squash/v2_image.py

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def _before_squashing(self):
3939
if self.layer_paths_to_move:
4040
self.squash_id = self.layer_paths_to_move[-1]
4141

42+
self.log.debug(f"Layers paths to squash: {self.layer_paths_to_squash}")
43+
self.log.debug(f"Layers paths to move: {self.layer_paths_to_move}")
44+
4245
def _squash(self):
4346
if self.layer_paths_to_squash:
4447
# Prepare the directory

0 commit comments

Comments
 (0)