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.
The test currently fails with the following error:
$ PYTHONPATH=$(pwd)/tests:$PYTHONPATH python3 -m unittest -v log_handler_test
...
test_logrecordfactory (log_handler_test.LogRecordFactoryTest.test_logrecordfactory) ... --- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3.12/logging/__init__.py", line 464, in format
return self._format(record)
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/logging/__init__.py", line 460, in _format
return self._fmt % values
~~~~~~~~~~^~~~~~~~
KeyError: 'custom_attribute'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.12/logging/__init__.py", line 1160, in emit
msg = self.format(record)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/logging/__init__.py", line 999, in format
return fmt.format(record)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/logging/__init__.py", line 999, in format
return fmt.format(record)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/logging/__init__.py", line 706, in format
s = self.formatMessage(record)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/logging/__init__.py", line 675, in formatMessage
return self._style.format(record)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/logging/__init__.py", line 466, in format
raise ValueError('Formatting field not found in record: %s' % e)
ValueError: Formatting field not found in record: 'custom_attribute'
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
|
1 month ago | |
|---|---|---|
| .ci | 3 months ago | |
| .github | 3 months ago | |
| ansible_mitogen | 1 month ago | |
| docs | 1 month ago | |
| examples | 1 year ago | |
| mitogen | 1 month ago | |
| scripts | 2 years ago | |
| tests | 1 month ago | |
| .gitignore | 6 months ago | |
| .lgtm.yml | 6 years ago | |
| LICENSE | 5 years ago | |
| MANIFEST.in | 7 years ago | |
| README.md | 1 year ago | |
| dev_requirements.txt | 7 years ago | |
| netlify.toml | 11 months ago | |
| preamble_size.py | 3 months ago | |
| run_tests | 4 years ago | |
| setup.cfg | 6 months ago | |
| setup.py | 1 month ago | |
| tox.ini | 3 months ago | |
