Skip to content

Commit

Permalink
ticdc/server: output the cdc server cmd error to stderr (#3520)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoxinyu committed Nov 29, 2021
1 parent 2257ef5 commit 5e218c7
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 4 deletions.
3 changes: 3 additions & 0 deletions dm/dm/ctl/ctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ func NewRootCmd() *cobra.Command {
Short: "DM control",
SilenceUsage: true,
SilenceErrors: true,
CompletionOptions: cobra.CompletionOptions{
DisableDefaultCmd: true,
},
}
// --worker worker1 -w worker2 --worker=worker3,worker4 -w=worker5,worker6
cmd.PersistentFlags().StringSliceVarP(&commandMasterFlags.workers, "source", "s", []string{}, "MySQL Source ID.")
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ require (
github.com/rakyll/statik v0.1.7
github.com/shopspring/decimal v1.3.0
github.com/soheilhy/cmux v0.1.5
github.com/spf13/cobra v1.0.0
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.7.0
github.com/swaggo/files v0.0.0-20190704085106-630677cd5c14
Expand Down
Loading

0 comments on commit 5e218c7

Please sign in to comment.