Allow config file to prevent logging configuration from happening.

This commit is contained in:
Lance Edgar 2014-04-28 14:26:21 -07:00
parent 183530afc9
commit 73978ffeb7

View file

@ -89,7 +89,8 @@ def init(appname='edbob', *args, **kwargs):
shell = kwargs.get('shell', False)
for paths in config_paths:
config.read(paths, recurse=not shell)
config.configure_logging()
if config.getboolean('edbob', 'configure_logging', default=True):
config.configure_logging()
default_modules = 'edbob.time'
modules = config.get('edbob', 'init', default=default_modules)