From a6447704e3aa9f267cbbdf9ab249ca62c9fbcdec Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 22 Feb 2021 17:00:03 -0500 Subject: [PATCH] Stop logging messages about using DOCKER_CONFIG Since the GetDefaultAuthFile() is caused during podman init it ends up logging the same info line multiple times, with no way for the user to quiet the output. Fixes https://github.com/containers/podman/issues/9473 Signed-off-by: Daniel J Walsh --- common/pkg/auth/auth.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/pkg/auth/auth.go b/common/pkg/auth/auth.go index 8daaf4c08b..88028d9f8d 100644 --- a/common/pkg/auth/auth.go +++ b/common/pkg/auth/auth.go @@ -22,9 +22,7 @@ import ( func GetDefaultAuthFile() string { authfile := os.Getenv("REGISTRY_AUTH_FILE") if authfile == "" { - if authfile, ok := os.LookupEnv("DOCKER_CONFIG"); ok { - logrus.Infof("Using DOCKER_CONFIG environment variable for authfile path %s", authfile) - } + authfile = os.Getenv("DOCKER_CONFIG") } return authfile }