Commit fb312302 authored by Conner Fromknecht's avatar Conner Fromknecht

fixme: set log level default to DEBUG

For some reason the log level environment variables aren't being picked
up, and neither is the default value for the flag being applied to the
final binary when run in docker. Remove this commit once a fix is
established.
parent e420af74
...@@ -223,6 +223,10 @@ func NewConfig(ctx *cli.Context) (Config, error) { ...@@ -223,6 +223,10 @@ func NewConfig(ctx *cli.Context) (Config, error) {
// ensure that it is well-formed. // ensure that it is well-formed.
func ValidateConfig(cfg *Config) error { func ValidateConfig(cfg *Config) error {
// Sanity check log level. // Sanity check log level.
if cfg.LogLevel == "" {
cfg.LogLevel = "debug"
}
_, err := log.LvlFromString(cfg.LogLevel) _, err := log.LvlFromString(cfg.LogLevel)
if err != nil { if err != nil {
return err return err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment