From 71746d788bf8f2a506b259832e071f2daa5011cd Mon Sep 17 00:00:00 2001 From: reshke Date: Fri, 22 Dec 2023 12:00:15 +0000 Subject: [PATCH] Fix log level --- cmd/yproxy/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/yproxy/main.go b/cmd/yproxy/main.go index d4c2c34..ccf5909 100644 --- a/cmd/yproxy/main.go +++ b/cmd/yproxy/main.go @@ -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() {