Skip to content

Commit

Permalink
Fix log level
Browse files Browse the repository at this point in the history
  • Loading branch information
reshke committed Dec 22, 2023
1 parent af9314a commit 71746d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/yproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ var rootCmd = &cobra.Command{

instance := core.Instance{}

ylogger.UpdateZeroLogLevel(logLevel)

return instance.Run(instanceCnf)
},
}

func init() {
rootCmd.PersistentFlags().StringVarP(&cfgPath, "config", "c", "/etc/yproxy/yproxy.yaml", "path to yproxy config file")
rootCmd.PersistentFlags().StringVarP(&logLevel, "log-level", "l", "", "log level")
rootCmd.PersistentFlags().StringVarP(&logLevel, "log-level", "l", "debug", "log level")
}

func main() {
Expand Down

0 comments on commit 71746d7

Please sign in to comment.