Created attachment 857841 [details] proposed solution - please test it Description of problem: From nitrate.py: from api import * From api.py: _log_level = log.WARN def set_log_level(level=None): ... log.getLogger().setLevel(_log_level) set_log_level() It means that after you import nitrate in your code, you will have log level of the root logger set to WARNING from the moment of the import, which may affect all your logging in the system (especially if you create all loggers with default NOTSET level and let them delegate messages to parents). Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: >>> import logging >>> logging.basicConfig(level=logging.INFO) >>> logger = logging.getLogger('test') >>> logging.getLogger().getEffectiveLevel() 20 >>> logger.getEffectiveLevel() 20 >>> import nitrate >>> logging.getLogger().getEffectiveLevel() 30 >>> logger.getEffectiveLevel() 30 Actual results: importing nitrate changes the log level of the root logger Expected results: * importing nitrate should not change the log level of the root logger * using nitrate should not change the level as well Additional info:
Thanks for the bug. This should now be fixed in the devel branch: https://github.com/psss/python-nitrate/commit/1735dbf
python-nitrate-1.0-0.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/python-nitrate-1.0-0.fc20
Package python-nitrate-1.0-0.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing python-nitrate-1.0-0.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-5095/python-nitrate-1.0-0.fc20 then log in and leave karma (feedback).
python-nitrate-1.0-0.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.