From 3b4df3d146c8c1fcc7a2916e4c88134c664de7af Mon Sep 17 00:00:00 2001 From: Cody Roseborough Date: Tue, 2 Oct 2018 22:14:31 +0000 Subject: [PATCH] Add layer id to NaiveDiffDriver untar timing log Signed-off-by: Cody Roseborough --- daemon/graphdriver/fsdiff.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/graphdriver/fsdiff.go b/daemon/graphdriver/fsdiff.go index e1f368508a..f06caedb92 100644 --- a/daemon/graphdriver/fsdiff.go +++ b/daemon/graphdriver/fsdiff.go @@ -145,11 +145,11 @@ func (gdw *NaiveDiffDriver) ApplyDiff(id, parent string, diff io.Reader) (size i options := &archive.TarOptions{UIDMaps: gdw.uidMaps, GIDMaps: gdw.gidMaps} 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 { 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 }