oslo.log/oslo_log/tests/unit
Victor Stinner 30e209e0e3 JSONFormatter convert unserializable with repr()
The JSONFormatter formatter now converts unserializable objects with
repr() to prevent JSON serialization errors on logging.

The fix requires oslo.serialization 2.20.2 or newer to get the new
fallback parameter of jsonutils.to_primitive().

Backport/cherry-pick note: 2.21.1 replaced with 2.20.2.

Closes-Bug: #1593641
Change-Id: Ibda7d145af95903b2bf8d87113804350330a93b4
(cherry picked from commit 22bd3d5321)
2017-12-15 17:49:46 +01: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 Use new logging specific method for context info 2016-05-24 09:45:11 -04:00
test_helpers.py Fix bug in log_method_call decorator 2017-05-25 14:43:02 +00:00
test_log.py JSONFormatter convert unserializable with repr() 2017-12-15 17:49:46 +01: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