Fix logging configuration
Set up a NullHandler to avoid warnings when applications do not configure a root logger. Change-Id: I6cd957396c5e3ad706aea812874ab43fdd9e8aea Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
This commit is contained in:
parent
589dd73fc7
commit
1a88f60328
|
@ -2,6 +2,10 @@
|
||||||
History
|
History
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
0.7.1
|
||||||
|
|
||||||
|
- Fix an issue with logging configuration.
|
||||||
|
|
||||||
0.7
|
0.7
|
||||||
|
|
||||||
- Add memoization to the entrypoint scanning code in
|
- Add memoization to the entrypoint scanning code in
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -16,7 +16,7 @@ install_requires = ['distribute',
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='stevedore',
|
name='stevedore',
|
||||||
version='0.7',
|
version='0.7.1',
|
||||||
|
|
||||||
description='Manage dynamic plugins for Python applications',
|
description='Manage dynamic plugins for Python applications',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
|
|
|
@ -3,3 +3,9 @@ from .enabled import EnabledExtensionManager
|
||||||
from .named import NamedExtensionManager
|
from .named import NamedExtensionManager
|
||||||
from .hook import HookManager
|
from .hook import HookManager
|
||||||
from .driver import DriverManager
|
from .driver import DriverManager
|
||||||
|
|
||||||
|
import logging
|
||||||
|
|
||||||
|
# Configure a NullHandler for our log messages in case
|
||||||
|
# the app we're used from does not set up logging.
|
||||||
|
logging.getLogger(__name__).addHandler(logging.NullHandler())
|
||||||
|
|
Loading…
Reference in New Issue