From fd520aef61996c213a960e1ea933def56dec17f6 Mon Sep 17 00:00:00 2001 From: Michal Fojtik Date: Mon, 15 Jan 2018 13:02:31 +0100 Subject: [PATCH] Show findmt command output in case of error --- pkg/util/mount/nsenter_mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/mount/nsenter_mount.go b/pkg/util/mount/nsenter_mount.go index a6c7869b0d..99e81837fd 100644 --- a/pkg/util/mount/nsenter_mount.go +++ b/pkg/util/mount/nsenter_mount.go @@ -165,7 +165,7 @@ func (n *NsenterMounter) IsLikelyNotMountPoint(file string) (bool, error) { glog.V(5).Infof("nsenter findmnt args: %v", args) out, err := n.ne.Exec("findmnt", args).CombinedOutput() if err != nil { - glog.V(2).Infof("Failed findmnt command for path %s: %v", file, err) + glog.V(2).Infof("Failed findmnt command for path %s: %s %v", file, out, err) // Different operating systems behave differently for paths which are not mount points. // On older versions (e.g. 2.20.1) we'd get error, on newer ones (e.g. 2.26.2) we'd get "/". // It's safer to assume that it's not a mount point.