From 292c4268daad787454aa6a5af3b9b5cd241356da Mon Sep 17 00:00:00 2001 From: Ben Burleson Date: Mon, 23 Apr 2018 11:47:23 -0700 Subject: [PATCH] Support LOG_LEVEL env variable --- options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.go b/options.go index eedff35c1..2a5ec97a4 100644 --- a/options.go +++ b/options.go @@ -81,7 +81,7 @@ func NewOptions() Options { func optionsWithDefaults(opts Options) Options { opts.Env = defaults.String(opts.Env, envy.Get("GO_ENV", "development")) - opts.LogLevel = defaults.String(opts.LogLevel, "debug") + opts.LogLevel = defaults.String(opts.LogLevel, envy.Get("LOG_LEVEL", "debug")) opts.Name = defaults.String(opts.Name, "/") addr := "0.0.0.0" if opts.Env == "development" {