Description of problem:
Python module pkgdb2client configures logging with logging.basicConfig(). Libraries which import this module need to unnecessary fix logging configuration. Otherwise any log messages are written to stderr.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. $ python
>>> import logging
>>> import pkgdb2client
>>> import sys
>>> logger = logging.getLogger('myLogger')
>>> ch = logging.StreamHandler(sys.stdout)
>>> logger.debug('test message')
On the stdout & stderr following messages are printed:
Only message to stdout should be printed:
Logging documentation describes how considerate python libraries should be configured towards other libraries.
Created attachment 921094 [details]
Patch which fixes the bug
Patch with fix attached.
Thanks for the catch and thanks for the patch :)
*** Bug 1114381 has been marked as a duplicate of this bug. ***
packagedb-cli-2.5-1.fc19 has been submitted as an update for Fedora 19.
packagedb-cli-2.5-1.el6 has been submitted as an update for Fedora EPEL 6.
packagedb-cli-2.5-1.fc20 has been submitted as an update for Fedora 20.
packagedb-cli-2.5-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
packagedb-cli-2.5-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
packagedb-cli-2.5-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 1120690 has been marked as a duplicate of this bug. ***