oslo.log/oslo_log/tests/unit
Nikita Gerasimov a2956d7ff0 Fix handling of exc_info in OSJournalHandler
exc_info is exception tuple not intended to be printed. It's using to
generate output by logging.Formatter().formatException() instead.
exc_text used to cache this output. So we use handler formatter to get
string from exc_info and send it as EXCEPTION_INFO. EXCEPTION_TEXT is
kept for backward compatibility.

Also adds type validation for journal.send fields to unit tests. Known
types could be gotten from journal.DEFAULT_CONVERTERS. The rest payload
must be either a string or bytes.

Change-Id: Idc0b9edc61b4ec39dc9df0ea8282cc104e4d83c0
Closes-Bug: 1802142
2018-11-30 18:10:33 +03:00
..
fixture test_logging_error: build a logger at the test level 2015-12-01 14:08:29 +03:00
__init__.py Move files out of the namespace package 2014-12-17 21:43:41 -05:00
test_convert_json.py Add a json reformatter command 2016-10-07 09:28:21 +01:00
test_custom_loghandler.py When record.args is None, it should not give an exception. 2017-04-04 22:46:56 +02:00
test_formatters.py Allow logging of unhashable exceptions in Python 3 2017-10-16 16:41:44 -04:00
test_helpers.py Fix bug in log_method_call decorator 2017-05-25 14:43:02 +00:00
test_log.py Fix handling of exc_info in OSJournalHandler 2018-11-30 18:10:33 +03:00
test_rate_limit.py Add a filter to rate limit logs 2016-09-19 15:09:43 +02:00
test_versionutils.py Add support for P and Q release names 2016-09-30 02:28:33 -04:00