mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add layer id to NaiveDiffDriver untar timing log
Signed-off-by: Cody Roseborough <crrosebo@amazon.com>
This commit is contained in:
parent
a9c061deec
commit
3b4df3d146
1 changed files with 2 additions and 2 deletions
|
@ -145,11 +145,11 @@ func (gdw *NaiveDiffDriver) ApplyDiff(id, parent string, diff io.Reader) (size i
|
||||||
options := &archive.TarOptions{UIDMaps: gdw.uidMaps,
|
options := &archive.TarOptions{UIDMaps: gdw.uidMaps,
|
||||||
GIDMaps: gdw.gidMaps}
|
GIDMaps: gdw.gidMaps}
|
||||||
start := time.Now().UTC()
|
start := time.Now().UTC()
|
||||||
logrus.Debug("Start untar layer")
|
logrus.WithField("id", id).Debug("Start untar layer")
|
||||||
if size, err = ApplyUncompressedLayer(layerFs, diff, options); err != nil {
|
if size, err = ApplyUncompressedLayer(layerFs, diff, options); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
logrus.Debugf("Untar time: %vs", time.Now().UTC().Sub(start).Seconds())
|
logrus.WithField("id", id).Debugf("Untar time: %vs", time.Now().UTC().Sub(start).Seconds())
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue