From af8359562c9561afad0a05e66386588d17788804 Mon Sep 17 00:00:00 2001 From: Zhang Wei Date: Tue, 26 Jul 2016 07:10:28 +0800 Subject: [PATCH] small nit: fix unmeaningful log Truncated dir name can't give any useful information, print whole dir name will. Bad debug log is like this: ``` DEBU[2449] aufs error unmounting /var/lib/doc: no such file or directory ``` Signed-off-by: Zhang Wei --- daemon/graphdriver/aufs/aufs.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon/graphdriver/aufs/aufs.go b/daemon/graphdriver/aufs/aufs.go index 3e4df08dd1..8f37d0c5c7 100644 --- a/daemon/graphdriver/aufs/aufs.go +++ b/daemon/graphdriver/aufs/aufs.go @@ -43,7 +43,6 @@ import ( "github.com/docker/docker/pkg/directory" "github.com/docker/docker/pkg/idtools" mountpk "github.com/docker/docker/pkg/mount" - "github.com/docker/docker/pkg/stringid" "github.com/opencontainers/runc/libcontainer/label" rsystem "github.com/opencontainers/runc/libcontainer/system" @@ -492,7 +491,7 @@ func (a *Driver) Cleanup() error { for _, m := range dirs { if err := a.unmount(m); err != nil { - logrus.Debugf("aufs error unmounting %s: %s", stringid.TruncateID(m), err) + logrus.Debugf("aufs error unmounting %s: %s", m, err) } } return mountpk.Unmount(a.root)