Skip to content

Commit

Permalink
LoadAllRepositoriesFromFS: log only filenames of loaded repositories
Browse files Browse the repository at this point in the history
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] #1038

Signed-off-by: Tomáš Hozza <[email protected]>
  • Loading branch information
thozza committed Nov 27, 2024
1 parent e8bf4da commit 4ea520d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/reporegistry/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4ea520d

Please sign in to comment.