Skip to content

Commit

Permalink
Try to debug using printlns instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles-Garnsey committed Dec 13, 2023
1 parent 12f6ae0 commit b389b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/medusa/refresh_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

func RefreshSecrets(dc *cassdcapi.CassandraDatacenter, ctx context.Context, client client.Client, logger logr.Logger, requeueDelay time.Duration) error {
logger.Info(fmt.Sprintf("Restore complete for DC %#v, Refreshing secrets", dc.ObjectMeta))
println(fmt.Sprintf("Restore complete for DC %#v, Refreshing secrets", dc.ObjectMeta))
userSecrets := []string{}
for _, user := range dc.Spec.Users {
userSecrets = append(userSecrets, user.SecretName)
Expand All @@ -25,7 +25,7 @@ func RefreshSecrets(dc *cassdcapi.CassandraDatacenter, ctx context.Context, clie
} else {
userSecrets = append(userSecrets, dc.Spec.SuperuserSecretName)
}
logger.Info(fmt.Sprintf("refreshing user secrets for %v", userSecrets))
println(fmt.Sprintf("refreshing user secrets for %v", userSecrets))
// Both Reaper and medusa secrets go into the userSecrets, so they don't need special handling.
for _, i := range userSecrets {
secret := &corev1.Secret{}
Expand Down

0 comments on commit b389b6f

Please sign in to comment.