From 0c5ad869df3ef6b618783e9ed19df1f1894b7a16 Mon Sep 17 00:00:00 2001 From: nikpivkin Date: Fri, 27 Sep 2024 18:11:25 +0600 Subject: [PATCH] chore: remove unnecessary logging Signed-off-by: nikpivkin --- pkg/commands/operation/operation.go | 1 - pkg/javadb/client.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/pkg/commands/operation/operation.go b/pkg/commands/operation/operation.go index 7ca3425cdcc5..7570c4393b69 100644 --- a/pkg/commands/operation/operation.go +++ b/pkg/commands/operation/operation.go @@ -36,7 +36,6 @@ func DownloadDB(ctx context.Context, appVersion, cacheDir string, dbRepositories if needsUpdate { log.InfoContext(ctx, "Need to update DB") - log.InfoContext(ctx, "Downloading DB...", log.Any("repositories", dbRepositories)) if err = client.Download(ctx, dbDir, opt); err != nil { return xerrors.Errorf("failed to download vulnerability DB: %w", err) } diff --git a/pkg/javadb/client.go b/pkg/javadb/client.go index cb1cc419e6ba..a1485c125681 100644 --- a/pkg/javadb/client.go +++ b/pkg/javadb/client.go @@ -59,8 +59,6 @@ func (u *Updater) Update() error { if (meta.Version != SchemaVersion || !u.isNewDB(meta)) && !u.skip { // Download DB - log.Info("Java DB Repositories", log.Any("repositories", u.repos)) - // TODO: support remote options if err := u.downloadDB(); err != nil { return xerrors.Errorf("OCI artifact error: %w", err)