From a8475a3999ebca2542a2fe6d5e4ea28234a1c2f4 Mon Sep 17 00:00:00 2001 From: Don Date: Tue, 29 Oct 2019 15:16:36 -0700 Subject: [PATCH] Add env var for log level --- pkg/urfave/logging.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/urfave/logging.go b/pkg/urfave/logging.go index ab91492..00ee68f 100644 --- a/pkg/urfave/logging.go +++ b/pkg/urfave/logging.go @@ -15,8 +15,9 @@ const logLevelFlag = "log-level" func loggingFlags() []cli.Flag { return []cli.Flag{ cli.StringFlag{ - Name: logLevelFlag, - Usage: "logging-level", + Name: logLevelFlag, + Usage: "logging-level", + EnvVar: "PLUGIN_LOG_LEVEL", }, } }