[client] Fix duplicate log lines in containers (#5609)

This commit is contained in:
Viktor Liu
2026-03-19 22:53:05 +08:00
committed by GitHub
parent a1858a9cb7
commit 5ffaa5cdd6
2 changed files with 7 additions and 1 deletions

View File

@@ -103,7 +103,7 @@ func (p *program) Stop(srv service.Service) error {
// Common setup for service control commands
func setupServiceControlCommand(cmd *cobra.Command, ctx context.Context, cancel context.CancelFunc) (service.Service, error) {
SetFlagsFromEnvVars(rootCmd)
// rootCmd env vars are already applied by PersistentPreRunE.
SetFlagsFromEnvVars(serviceCmd)
cmd.SetOut(cmd.OutOrStdout())