summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-09-26 16:12:18 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-09-26 16:14:57 -0400
commit62c0b387f560efedfb3cc02ba3c4803d80882d82 (patch)
tree67f702e83e7b48cd148ced6b5695ff1aea514628 /pkg
parent19075ca16e6b34cc7f25d3fbc0fad96b44cbfef5 (diff)
downloadpodman-62c0b387f560efedfb3cc02ba3c4803d80882d82.tar.gz
podman-62c0b387f560efedfb3cc02ba3c4803d80882d82.tar.bz2
podman-62c0b387f560efedfb3cc02ba3c4803d80882d82.zip
Set log-level immediately, before rootless setup
If we don't do this, we print WARN level messages that we should not be printing by default. Up one WARN message to ERROR so it still shows up by default. Fixes: #4115 Fixes: #4012 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/rootless/rootless_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/rootless/rootless_linux.go b/pkg/rootless/rootless_linux.go
index ecb84f6a9..6f6239e5f 100644
--- a/pkg/rootless/rootless_linux.go
+++ b/pkg/rootless/rootless_linux.go
@@ -365,7 +365,7 @@ func GetConfiguredMappings() ([]idtools.IDMap, []idtools.IDMap, error) {
}
mappings, err := idtools.NewIDMappings(username, username)
if err != nil {
- logrus.Warnf("cannot find mappings for user %s: %v", username, err)
+ logrus.Errorf("cannot find mappings for user %s: %v", username, err)
} else {
uids = mappings.UIDs()
gids = mappings.GIDs()