fix: make sure enable boolean() (#6147)
This commit is contained in:
parent
66d0c44e36
commit
f3de1bdb77
|
@ -34,7 +34,7 @@
|
||||||
list_trace(_, Params) ->
|
list_trace(_, Params) ->
|
||||||
List =
|
List =
|
||||||
case Params of
|
case Params of
|
||||||
[{<<"enable">>, Enable}] -> emqx_trace:list(Enable);
|
[{<<"enable">>, Enable}] -> emqx_trace:list(binary_to_existing_atom(Enable));
|
||||||
_ -> emqx_trace:list()
|
_ -> emqx_trace:list()
|
||||||
end,
|
end,
|
||||||
{ok, emqx_trace:format(List)}.
|
{ok, emqx_trace:format(List)}.
|
||||||
|
|
Loading…
Reference in New Issue