Mirror of mitogen
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Marc Hartmayer 24745183ed master: Fix LogForwarder in case an own LogRecordFactory is used
Since Python 3.2 the log record factory can be changed by using
`logging.setLogRecordFactory` [1]. Therefore use `logging.makeLogRecord` as
recommended in the documentation:

"LogRecord instances are created automatically by the Logger every time
something is logged, and can be created manually via makeLogRecord() (for
example, from a pickled event received over the wire)." [2]

This fixes the test case
`log_handler_test.LogRecordFactoryTest.test_logrecordfactory`.

[1] https://docs.python.org/3/library/logging.html#logging.setLogRecordFactory
[2] https://docs.python.org/3/library/logging.html#logrecord-objects

Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
2 months ago
.ci mitogen: Fix non-blocking IO errors in first stage of bootstrap 5 months ago
.github Python 3.14 support 4 months ago
ansible_mitogen ansible_mitogen: De-duplicate sys.path manipulations by Ansible plugins 2 months ago
docs Declare license as SPDX identifier in metadata 2 months ago
examples Remove get_password_hash, unused 1 year ago
mitogen master: Fix LogForwarder in case an own LogRecordFactory is used 2 months ago
scripts add Python3 compatibility 2 years ago
tests tests: Add a test case that verifies behavior when the log record factory is modified 2 months ago
.gitignore chore: Ignore locally installed collections, dummy modules, etc 7 months ago
.lgtm.yml Whoops, merge together lgtm.yml and .lgtm.yml 7 years ago
LICENSE Bump copyright year and use generic author name (testing Travis) 5 years ago
MANIFEST.in setup.py: include LICENSE; closes #538. 7 years ago
README.md docs: shields.io badges for PyPI version & supported Python versions 1 year ago
dev_requirements.txt Split dev_requirements.txt up according to test mode. 7 years ago
netlify.toml docs: Attempt to configure Netlify build of mitogen.networkgenomics.com 1 year ago
preamble_size.py preamble_size: Fix variability of command & preamble(?) size 5 months ago
run_tests tests: Remove unittest2, use stdlib unittest 4 years ago
setup.cfg Keep comatibility with `setuptools` tagging wheels with `py2.py3` 7 months ago
setup.py Declare license as SPDX identifier in metadata 2 months ago
tox.ini Python 3.14 support 4 months ago

README.md