Skip to content

Commit

Permalink
fix migration log messages (log API doesn't support %q)
Browse files Browse the repository at this point in the history
  • Loading branch information
faec committed Oct 31, 2024
1 parent 68be8a7 commit 085b30b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/agent/migration/migrate_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
}

0 comments on commit 085b30b

Please sign in to comment.