fix: make sure enable boolean() (#6147)

This commit is contained in:
zhongwencool 2021-11-12 15:48:30 +08:00 committed by GitHub
parent 66d0c44e36
commit f3de1bdb77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@
list_trace(_, Params) ->
List =
case Params of
[{<<"enable">>, Enable}] -> emqx_trace:list(Enable);
[{<<"enable">>, Enable}] -> emqx_trace:list(binary_to_existing_atom(Enable));
_ -> emqx_trace:list()
end,
{ok, emqx_trace:format(List)}.