hutch icon indicating copy to clipboard operation
hutch copied to clipboard

Config: Resolve log_level setting input value to Logger constant for severity level

Open olleolleolle opened this issue 9 years ago • 1 comments

This is a feature request: for config option log_level, always convert given input to a Logger constant before setting the value.

The Config log_level setting currently does no resolving, but expects it to be a Logger-compatible level setting. It is used in .setup_logger.

Use-case: call the hutch CLI with an ENV variable set to HUTCH_LOG_LEVEL=DEBUG hutch

olleolleolle avatar Oct 20 '16 10:10 olleolleolle

This is a follow-up to #260.

michaelklishin avatar Feb 28 '17 12:02 michaelklishin