gecko-dev/testing/mozbase/mozlog
Nikki S 30631bd28b Bug 1066323 - [mozlog] Mozlog shouldn't propagate unremarkable defaults to the raw log r=jgraham
Currently, some of the raw JSON logs for mochitest and marionette, et al, include
empty dictionaries, None values and other unremarkable values that are marked
as optional. This fix aims to remove these unnecessary items from being
passed to the raw log.

A method has been added to the log_actions class which removes defaults if they
are marked as optional and the value is included in the default list. This is
called on the kwargs returned by the convert_known method, before being
propagated to the log_raw method for StructuredLogger.

Differential Revision: https://phabricator.services.mozilla.com/D25081

--HG--
extra : moz-landing-system : lando
2019-05-21 15:49:51 +00:00
..
mozlog Bug 1066323 - [mozlog] Mozlog shouldn't propagate unremarkable defaults to the raw log r=jgraham 2019-05-21 15:49:51 +00:00
tests Bug 1066323 - [mozlog] Mozlog shouldn't propagate unremarkable defaults to the raw log r=jgraham 2019-05-21 15:49:51 +00:00
setup.cfg Bug 1471648 - [mozlog] Add support for Python 3; r=raphael 2019-02-01 13:08:09 +00:00
setup.py Bug 1527610 - [mozlog] Library fails after python 3 update; TypeError: vars() argument must have _dict_ attribute r=ahal 2019-05-21 15:04:20 +00:00