mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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 <zhangwei555@huawei.com>
This commit is contained in:
parent
9c1be541ff
commit
af8359562c
1 changed files with 1 additions and 2 deletions
|
@ -43,7 +43,6 @@ import (
|
||||||
"github.com/docker/docker/pkg/directory"
|
"github.com/docker/docker/pkg/directory"
|
||||||
"github.com/docker/docker/pkg/idtools"
|
"github.com/docker/docker/pkg/idtools"
|
||||||
mountpk "github.com/docker/docker/pkg/mount"
|
mountpk "github.com/docker/docker/pkg/mount"
|
||||||
"github.com/docker/docker/pkg/stringid"
|
|
||||||
|
|
||||||
"github.com/opencontainers/runc/libcontainer/label"
|
"github.com/opencontainers/runc/libcontainer/label"
|
||||||
rsystem "github.com/opencontainers/runc/libcontainer/system"
|
rsystem "github.com/opencontainers/runc/libcontainer/system"
|
||||||
|
@ -492,7 +491,7 @@ func (a *Driver) Cleanup() error {
|
||||||
|
|
||||||
for _, m := range dirs {
|
for _, m := range dirs {
|
||||||
if err := a.unmount(m); err != nil {
|
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)
|
return mountpk.Unmount(a.root)
|
||||||
|
|
Loading…
Add table
Reference in a new issue