Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Support LOG_LEVEL env variable (#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
benburleson authored and stanislas-m committed May 12, 2018
1 parent da8109c commit 24f0f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 24f0f36

Please sign in to comment.