Skip to content

Commit

Permalink
Log level DEBUG by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyxdd committed May 9, 2021
1 parent faabd09 commit 35e285f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func initApp(c *cli.Context) error {
if err == nil {
logrus.SetLevel(lvl)
} else {
logrus.SetLevel(logrus.InfoLevel)
logrus.SetLevel(logrus.DebugLevel)
}

if strings.ToLower(c.String("log-format")) == "json" {
Expand Down Expand Up @@ -155,7 +155,7 @@ func commonFlags() []cli.Flag {
Name: "log-level",
Usage: "log level",
EnvVars: []string{"HYSTERIA_LOG_LEVEL", "LOGGING_LEVEL"},
Value: "info",
Value: "debug",
},
&cli.StringFlag{
Name: "log-timestamp",
Expand Down

0 comments on commit 35e285f

Please sign in to comment.