bpo-32732 Extra kwargs of log() are ignored by LoggerAdapter by mcoolive · Pull Request #5463 · python/cpython (original) (raw)

extra = dict(extra_1, **kwargs.get('extra', {}))

Python 3.8.0a0 (heads/master:07a1892f82, Feb 1 2018, 07:58:09) [GCC 7.2.1 20170915 (Red Hat 7.2.1-2)] on linux Type "help", "copyright", "credits" or "license" for more information.

extra_1 = None or {'firstname': 'Cyril'} kwargs = {'extra': {'lastname': 'Martin'}} extra = dict(extra_1, **kwargs.get('extra', {})) extra {'firstname': 'Cyril', 'lastname': 'Martin'}