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:
Zaiming Shi 2021-05-24 23:24:21 +02:00 committed by turtleDeng
parent b24ae5925a
commit 1ec3c2d7b9
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ censor([Key | _], Val) ->
end.
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) ->
try iolist_to_binary(Key) of
Bin ->