Merge branch 'trace-log-detail-api' of https://github.com/zhongwencool/emqx into trace-log-detail-api
This commit is contained in:
commit
c0ed8b82aa
|
@ -148,7 +148,7 @@ schema("/trace/:name/log_detail") ->
|
|||
#{
|
||||
'operationId' => log_file_detail,
|
||||
get => #{
|
||||
description => "get trace log file's detail message, such as size, last update time",
|
||||
description => "get trace log file's metadata, such as size, last update time",
|
||||
tags => ?TAGS,
|
||||
parameters => [hoconsc:ref(name)],
|
||||
responses => #{
|
||||
|
|
|
@ -63,4 +63,4 @@ trace_file_detail(Nodes, File) ->
|
|||
| {eof, non_neg_integer()}
|
||||
| {badrpc, _}.
|
||||
read_trace_file(Node, Name, Position, Limit) ->
|
||||
rpc:call(Node, emqx_mgmt_api_trace, read_trace_file, [Name, Position, Limit]).
|
||||
rpc:call(Node, emqx_mgmt_api_trace, read_trace_file, [Name, Position, Limit], 15000).
|
||||
|
|
Loading…
Reference in New Issue