From a641df3d5bcd4ebe6b0b2851a044b64a00892580 Mon Sep 17 00:00:00 2001 From: Mehul-Kumar-27 <202151092@iiitvadodara.ac.in> Date: Tue, 5 Nov 2024 02:19:11 +0530 Subject: [PATCH] avoid printing confedential information in log --- internal/state/state_process.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/internal/state/state_process.go b/internal/state/state_process.go index a130d09..738c2f6 100644 --- a/internal/state/state_process.go +++ b/internal/state/state_process.go @@ -94,13 +94,7 @@ func (f *FetchAndReplicateStateProcess) Execute(ctx context.Context) error { if err := f.notifier.Notify(); err != nil { log.Error().Err(err).Msg("Error sending notification") } - log.Info().Msg("Replicating state") - log.Info().Msg("Replicator config") - log.Info().Msgf("Username: %s", f.authConfig.Username) - log.Info().Msgf("Password: %s", f.authConfig.Password) - log.Info().Msgf("Remote registry URL: %s", f.authConfig.remoteRegistryURL) - log.Info().Msgf("Source registry: %s", f.authConfig.sourceRegistry) - + replicator := NewBasicReplicator(f.authConfig.Username, f.authConfig.Password, f.authConfig.remoteRegistryURL, f.authConfig.sourceRegistry, f.authConfig.useUnsecure) // Delete the entities from the remote registry if err := replicator.DeleteReplicationEntity(ctx, deleteEntity); err != nil {