Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
drop missing keys from KeyValueRender #67
Current coverage is 100%
@@ master #67 diff @@ ======================================== Files 13 13 Lines 692 694 +2 Methods 0 0 Branches 86 88 +2 ======================================== + Hits 692 694 +2 Misses 0 0 Partials 0 0
Are you suggesting something like
If so the downside is that it would prevent logging None when its a valid value. Otherwise, I don't understand your suggestion.
My particular problem is that KeyValueRenderer is injecting spurious new keys into my log messages when I set a key_order. For example, web requests will have method,path keys which are never present in celery tasks but because Django shares the config I end up with method=None, path=None in my task logs. I could use different config for each but that seems less DRY..