fix(emqx_node_dump): call atom_to_binary/2
atom_to_binary/1 is added in otp 23, we still need to support older version
This commit is contained in:
parent
b24ae5925a
commit
1ec3c2d7b9
|
@ -52,7 +52,7 @@ censor([Key | _], Val) ->
|
||||||
end.
|
end.
|
||||||
|
|
||||||
is_sensitive(Key) when is_atom(Key) ->
|
is_sensitive(Key) when is_atom(Key) ->
|
||||||
is_sensitive(atom_to_binary(Key));
|
is_sensitive(atom_to_binary(Key, utf8));
|
||||||
is_sensitive(Key) when is_list(Key) ->
|
is_sensitive(Key) when is_list(Key) ->
|
||||||
try iolist_to_binary(Key) of
|
try iolist_to_binary(Key) of
|
||||||
Bin ->
|
Bin ->
|
||||||
|
|
Loading…
Reference in New Issue