You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be a performance hit but we could deepcopy the dict before adding all the attributes. This is what I'm doing on my custom implementation of a JsonFormatter.
The text was updated successfully, but these errors were encountered:
Summary
When using the CloudWatchLogFormatter with its
add_log_record_attrs
functionality, it mutates dictionary objects that are passed to logging calls.Reproducible Example
Suggested Mitigation
It would be a performance hit but we could deepcopy the dict before adding all the attributes. This is what I'm doing on my custom implementation of a JsonFormatter.
The text was updated successfully, but these errors were encountered: