From 4ea520d3877427d912272b052dae4c6cde99792f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Wed, 27 Nov 2024 11:30:46 +0100 Subject: [PATCH] LoadAllRepositoriesFromFS: log only filenames of loaded repositories MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After the rework done by PR#1038 [1], the `configFile` changed from the file path string to `fs.File` instance. As a result, logging it makes the output verbose, as it logs the whole content of the loaded file (repo URLs, GPG keys, etc.). Revert to the old behavior by logging `fileEntry.Name()` for the loaded repository. [1] https://github.com/osbuild/images/pull/1038 Signed-off-by: Tomáš Hozza --- pkg/reporegistry/repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/reporegistry/repository.go b/pkg/reporegistry/repository.go index ffe14574a8..4706724bef 100644 --- a/pkg/reporegistry/repository.go +++ b/pkg/reporegistry/repository.go @@ -75,7 +75,7 @@ func LoadAllRepositoriesFromFS(confPaths []fs.FS) (rpmmd.DistrosRepoConfigs, err return nil, err } - logrus.Infof("Loaded repository configuration file: %s", configFile) + logrus.Infof("Loaded repository configuration file: %s", fileEntry.Name()) distrosRepoConfigs[distro] = distroRepos }