diff options
author | Doug Hellmann <doug.hellmann@dreamhost.com> | 2012-11-27 14:32:44 -0500 |
---|---|---|
committer | Doug Hellmann <doug.hellmann@dreamhost.com> | 2012-11-27 14:32:44 -0500 |
commit | 1a88f60328b6931cf21eb0d5f8cdc92e2ad4ef1b (patch) | |
tree | 9f13d3fa063660297d29b36bef5e9d46a9503ecb | |
parent | 589dd73fc7e5018a9bb150c7d65b5448743e926f (diff) | |
download | stevedore-1a88f60328b6931cf21eb0d5f8cdc92e2ad4ef1b.tar.gz |
Fix logging configuration0.7.1
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>
-rw-r--r-- | docs/source/history.rst | 4 | ||||
-rw-r--r-- | setup.py | 2 | ||||
-rw-r--r-- | stevedore/__init__.py | 6 |
3 files changed, 11 insertions, 1 deletions
diff --git a/docs/source/history.rst b/docs/source/history.rst index 598b961..278269f 100644 --- a/docs/source/history.rst +++ b/docs/source/history.rst @@ -2,6 +2,10 @@ History ========= +0.7.1 + + - Fix an issue with logging configuration. + 0.7 - Add memoization to the entrypoint scanning code in @@ -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, diff --git a/stevedore/__init__.py b/stevedore/__init__.py index 9b19761..f61f605 100644 --- a/stevedore/__init__.py +++ b/stevedore/__init__.py @@ -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()) |