Closed KronicDeth closed 8 years ago
Hello!
Thanks for the pull!
I'm curious about why this is needed. When you say "but pid can appear in other fields", why is that exactly? Are those fields being filled by Elixir or Logger itself somehow?
It can happen in Phoenix with :ecto_conn_pid
.
Got it! Thanks :)
Changelog
Bug Fixes
pid
key of the metadata would be inspected before being passed as the fields value of the map that is encoded byJSX.encode
, but a pid can appear in other fields, so all field values are now escaped withinspect
if they are pids. This prevents a MatchError happening because JSX.encode would return{:error, :badarg}
if it tried to encode a pid.