From 085b30b20d428a6b6eafd997a07c671eb6e2a475 Mon Sep 17 00:00:00 2001 From: Fae Charlton Date: Thu, 31 Oct 2024 15:16:00 -0400 Subject: [PATCH] fix migration log messages (log API doesn't support %q) --- internal/pkg/agent/migration/migrate_config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/pkg/agent/migration/migrate_config.go b/internal/pkg/agent/migration/migrate_config.go index c2d1cfb87a1..f03b9c86f2a 100644 --- a/internal/pkg/agent/migration/migrate_config.go +++ b/internal/pkg/agent/migration/migrate_config.go @@ -42,7 +42,7 @@ func MigrateToEncryptedConfig(ctx context.Context, l *logp.Logger, unencryptedCo return nil } - l.Info("Initiating migration of %q to %q", unencryptedConfigPath, encryptedConfigPath) + l.Info(fmt.Sprintf("Initiating migration of %q to %q", unencryptedConfigPath, encryptedConfigPath)) legacyStore, err := storage.NewDiskStore(unencryptedConfigPath) if err != nil { return fmt.Errorf("error instantiating disk store: %w", err) @@ -65,7 +65,7 @@ func MigrateToEncryptedConfig(ctx context.Context, l *logp.Logger, unencryptedCo if err != nil { return errors.New(err, fmt.Sprintf("error writing encrypted config from file %q to file %q", unencryptedConfigPath, encryptedConfigPath)) } - l.Info("Migration of %q to %q complete", unencryptedConfigPath, encryptedConfigPath) + l.Info(fmt.Sprintf("Migration of %q to %q complete", unencryptedConfigPath, encryptedConfigPath)) return nil }