summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-12-19 06:17:29 -0500
committerGitHub <noreply@github.com>2021-12-19 06:17:29 -0500
commit65efd55d416e84a953b11211b2c80783ff632379 (patch)
tree29eb33f677ce51dd410499dcb1d87c85a69dfe8b /pkg
parent59766ebe76fe5bdd15256f5d39d063c95304989f (diff)
parenta837984c46a326e85a030da3f15eda57e45d6709 (diff)
downloadpodman-65efd55d416e84a953b11211b2c80783ff632379.tar.gz
podman-65efd55d416e84a953b11211b2c80783ff632379.tar.bz2
podman-65efd55d416e84a953b11211b2c80783ff632379.zip
Merge pull request #12641 from giuseppe/add-more-logging-setuserns
rootless: include the args in the debug message
Diffstat (limited to 'pkg')
-rw-r--r--pkg/rootless/rootless_linux.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/rootless/rootless_linux.go b/pkg/rootless/rootless_linux.go
index 3e81d5c14..92725adc7 100644
--- a/pkg/rootless/rootless_linux.go
+++ b/pkg/rootless/rootless_linux.go
@@ -145,8 +145,8 @@ func tryMappingTool(uid bool, pid int, hostID int, mappings []idtools.IDMap) err
}
if output, err := cmd.CombinedOutput(); err != nil {
- logrus.Debugf("error from %s: %s", tool, output)
- return errors.Wrapf(err, "cannot setup namespace using %s", tool)
+ logrus.Errorf("error running `%s`: %s", strings.Join(args, " "), output)
+ return errors.Wrapf(err, "cannot setup namespace using %q", path)
}
return nil
}