skymill / cumulus

Cumulus is a deployment suite used to deploy and manage environments built with AWS CloudFormation
http://cumulus-ds.readthedocs.org/
Apache License 2.0
12 stars 5 forks source link

Always convert log levels to upper case #130

Closed sebdah closed 10 years ago

sebdah commented 10 years ago

The following is due to a configuration file like this:

[general]
log-level: debug

We should not have to do this:

/Users/sebastian/.cumulus.conf, general-management/cumulus.conf
Traceback (most recent call last):
  File "/Users/sebastian/git/skymill/cumulus/cumulus/cumulus", line 23, in <module>
    import cumulus_ds
  File "/Users/sebastian/git/skymill/cumulus/cumulus/cumulus_ds/__init__.py", line 91, in <module>
    logging.config.dictConfig(LOGGING_CONFIG)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/config.py", line 803, in dictConfig
    dictConfigClass(config).configure()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/config.py", line 585, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'default': Unknown level: 'debug