oslo.log/oslo_log
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
..
cmds tail support, log filtering, executable, and splitlines bug fix 2017-01-25 16:43:14 -07:00
fixture Expose fixtures through oslo_log.fixture 2015-01-30 11:37:42 -05:00
locale Imported Translations from Zanata 2016-07-01 06:28:23 +00:00
tests JSONFormatter convert unserializable with repr() 2017-12-15 17:49:46 +01:00
__init__.py Move files out of the namespace package 2014-12-17 21:43:41 -05:00
_i18n.py Remove log translations 2017-03-22 14:17:23 +00:00
_options.py Add oslo_messaging to the list of log levels 2017-04-19 21:54:51 +00:00
formatters.py JSONFormatter convert unserializable with repr() 2017-12-15 17:49:46 +01:00
handlers.py Add additional info like python-systemd does 2017-04-19 09:44:19 -05:00
helpers.py Fix bug in log_method_call decorator 2017-05-25 14:43:02 +00:00
log.py Add log.get_loggers method 2017-06-26 17:03:53 +02:00
rate_limit.py Add a filter to rate limit logs 2016-09-19 15:09:43 +02:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:23 -05:00
versionutils.py Add support for P and Q release names 2016-09-30 02:28:33 -04:00
watchers.py Reduce READ_FREQ and TIMEOUT for watch-file 2016-05-13 02:05:31 -07:00