Description of problem: Python module pkgdb2client configures logging with logging.basicConfig()[1]. 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): 2.4 How reproducible: Always Steps to Reproduce: 1. $ python >>> import logging >>> import pkgdb2client >>> import sys >>> logger = logging.getLogger('myLogger') >>> logger.setLevel(logging.DEBUG) >>> ch = logging.StreamHandler(sys.stdout) >>> ch.setLevel(logging.DEBUG) >>> logger.addHandler(ch) >>> logger.debug('test message') Actual results: On the stdout & stderr following messages are printed: test message DEBUG:myLogger:test message Expected results: Only message to stdout should be printed: test message Additional info: Logging documentation describes[2] how considerate python libraries should be configured towards other libraries. [1] https://docs.python.org/3.1/library/logging.html#logging.basicConfig [2] https://docs.python.org/3.1/library/logging.html#library-config
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. https://admin.fedoraproject.org/updates/packagedb-cli-2.5-1.fc19
packagedb-cli-2.5-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/packagedb-cli-2.5-1.el6
packagedb-cli-2.5-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/packagedb-cli-2.5-1.fc20
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. ***