Allow config file to prevent logging configuration from happening.
This commit is contained in:
parent
183530afc9
commit
73978ffeb7
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,8 @@ def init(appname='edbob', *args, **kwargs):
|
||||||
shell = kwargs.get('shell', False)
|
shell = kwargs.get('shell', False)
|
||||||
for paths in config_paths:
|
for paths in config_paths:
|
||||||
config.read(paths, recurse=not shell)
|
config.read(paths, recurse=not shell)
|
||||||
config.configure_logging()
|
if config.getboolean('edbob', 'configure_logging', default=True):
|
||||||
|
config.configure_logging()
|
||||||
|
|
||||||
default_modules = 'edbob.time'
|
default_modules = 'edbob.time'
|
||||||
modules = config.get('edbob', 'init', default=default_modules)
|
modules = config.get('edbob', 'init', default=default_modules)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue