Skip to content

Commit

Permalink
cmd: deprecate cmd args log_level and log_encoder (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
djshow832 authored Apr 12, 2024
1 parent 7316949 commit 61c6085
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/tiproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ func main() {

sctx := &sctx.Context{}

var deprecatedStr string
rootCmd.PersistentFlags().StringVar(&sctx.ConfigFile, "config", "", "proxy config file path")
rootCmd.PersistentFlags().StringVar(&sctx.Overlay.Log.Encoder, "log_encoder", "", "log in format of tidb, console, or json")
rootCmd.PersistentFlags().StringVar(&sctx.Overlay.Log.Level, "log_level", "", "log level")
rootCmd.PersistentFlags().StringVar(&deprecatedStr, "log_encoder", "", "deprecated and will be removed")
rootCmd.PersistentFlags().StringVar(&deprecatedStr, "log_level", "", "deprecated and will be removed")
rootCmd.PersistentFlags().StringVar(&sctx.Overlay.Proxy.AdvertiseAddr, "advertise-addr", "", "advertise address")

metrics.MaxProcsGauge.Set(float64(runtime.GOMAXPROCS(0)))
Expand Down

0 comments on commit 61c6085

Please sign in to comment.