feat(config): Get log level from environment
This commit is contained in:
parent
2c10e3766d
commit
afdc8aa7af
@ -83,7 +83,9 @@ logging.basicConfig(
|
||||
)
|
||||
log = logging.getLogger("rich")
|
||||
# Our own code logs with this level
|
||||
log.setLevel(logging.DEBUG)
|
||||
log.setLevel(os.environ.get("UFS_LOGLEVEL") if "UFS_LOGLEVEL" in [k for k, v in os.environ.items()] else logging.INFO)
|
||||
|
||||
p = inflect.engine()
|
||||
|
||||
|
||||
# Use this version of class ConfigParser to log.debug contents of our config file. When parsing sections other than
|
||||
|
Loading…
x
Reference in New Issue
Block a user