Permalink
Browse files

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>
  • Loading branch information...
1 parent 589dd73 commit 1a88f60328b6931cf21eb0d5f8cdc92e2ad4ef1b @dhellmann dhellmann committed Nov 27, 2012
Showing with 11 additions and 1 deletion.
  1. +4 −0 docs/source/history.rst
  2. +1 −1 setup.py
  3. +6 −0 stevedore/__init__.py
View
@@ -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
@@ -16,7 +16,7 @@
setup(
name='stevedore',
- version='0.7',
+ version='0.7.1',
description='Manage dynamic plugins for Python applications',
long_description=long_description,
View
@@ -3,3 +3,9 @@
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())

0 comments on commit 1a88f60

Please sign in to comment.