Skip to content

Commit fca76ca

Browse files
authored
Merge pull request #244 from nicholasSUSE/log-fix
fixing Logs
2 parents 756021b + e987c64 commit fca76ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ func main() {
396396
Name: "scan-registries",
397397
Usage: "Fetch, list and compare SUSE's registries and create yaml files with what is supposed to be synced from Docker Hub",
398398
Action: scanRegistries,
399-
Flags: []cli.Flag{primeURLFlag, dockerUserFlag, dockerPasswordFlag},
399+
Flags: []cli.Flag{primeURLFlag},
400400
},
401401
{
402402
Name: "sync-registries",

pkg/registries/remote.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func checkRegistriesImagesTags(ctx context.Context, primeRegistry string) (map[s
7979
// ListRegistryImageTags checks images and its tags on a given registry.
8080
// this function is mockable for unit-testing.
8181
var listRegistryImageTags = func(ctx context.Context, imageTagMap map[string][]string, registry string) (map[string][]string, error) {
82-
logger.Log(ctx, slog.LevelInfo, "listing registry images/tags", slog.String("remote", registry))
82+
logger.Log(ctx, slog.LevelInfo, "listing registry images/tags")
8383

8484
remoteImgTagMap := make(map[string][]string)
8585

@@ -182,7 +182,7 @@ func primeCredentials(ctx context.Context) authn.Authenticator {
182182
password := os.Getenv("REGISTRY_PASSWORD")
183183

184184
if username == "" || password == "" {
185-
logger.Log(ctx, slog.LevelWarn, "Docker credentials not provided, proceeding with unauthenticated requests")
185+
logger.Log(ctx, slog.LevelWarn, "Prime credentials not provided, proceeding with unauthenticated requests")
186186
authenticator = nil
187187
} else {
188188
authenticator = &authn.Basic{

0 commit comments

Comments
 (0)