Skip to content

Commit

Permalink
avoid printing confedential information in log
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehul-Kumar-27 committed Nov 4, 2024
1 parent abb1a3e commit a641df3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions internal/state/state_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a641df3

Please sign in to comment.