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:
Doug Hellmann 2012-11-27 14:32:44 -05:00
parent 589dd73fc7
commit 1a88f60328
3 changed files with 11 additions and 1 deletions

View File

@ -2,6 +2,10 @@
History
=========
0.7.1
- Fix an issue with logging configuration.
0.7
- Add memoization to the entrypoint scanning code in

View File

@ -16,7 +16,7 @@ install_requires = ['distribute',
setup(
name='stevedore',
version='0.7',
version='0.7.1',
description='Manage dynamic plugins for Python applications',
long_description=long_description,

View File

@ -3,3 +3,9 @@ from .enabled import EnabledExtensionManager
from .named import NamedExtensionManager
from .hook import HookManager
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())