Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tejal29 committed Oct 4, 2019
1 parent 3ad9255 commit 1a88d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/util/fs_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ func GetFSFromImage(root string, img v1.Image) ([]string, error) {
extractedFiles := []string{}

for i, l := range layers {
mediaType, err := l.MediaType()
if err == nil {
if mediaType, err := l.MediaType(); err == nil {
logrus.Debugf("Extracting layer %d of media type %s", mediaType)
} else {
logrus.Debugf("Extracting layer %d", i)
}

r, err := l.Uncompressed()
if err != nil {
return nil, err
Expand Down

0 comments on commit 1a88d7a

Please sign in to comment.