oslo.log/oslo_log/tests
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
..
unit Fix handling of exc_info in OSJournalHandler 2018-11-30 18:10:33 +03:00
__init__.py Move files out of the namespace package 2014-12-17 21:43:41 -05:00