Explorar el Código

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
Zaiming Shi hace 4 años
padre
commit
1ec3c2d7b9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/emqx_node_dump.erl

+ 1 - 1
src/emqx_node_dump.erl

@@ -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 ->