0
0
mirror of https://github.com/thegeeklab/wp-plugin-go.git synced 2024-11-22 00:20:38 +00:00

Add env var for log level

This commit is contained in:
Don 2019-10-29 15:16:36 -07:00
parent 049cce9e39
commit a8475a3999

View File

@ -15,8 +15,9 @@ const logLevelFlag = "log-level"
func loggingFlags() []cli.Flag { func loggingFlags() []cli.Flag {
return []cli.Flag{ return []cli.Flag{
cli.StringFlag{ cli.StringFlag{
Name: logLevelFlag, Name: logLevelFlag,
Usage: "logging-level", Usage: "logging-level",
EnvVar: "PLUGIN_LOG_LEVEL",
}, },
} }
} }