From e24ab5588a7c5ec8d4f81c0573e8449be354fc5b Mon Sep 17 00:00:00 2001 From: DDDHuang <44492639+DDDHuang@users.noreply.github.com> Date: Thu, 21 Apr 2022 18:33:37 +0800 Subject: [PATCH] fix: bad log path --- apps/emqx_management/src/emqx_mgmt_api_nodes.erl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/emqx_management/src/emqx_mgmt_api_nodes.erl b/apps/emqx_management/src/emqx_mgmt_api_nodes.erl index 5813e6522..bd5b0d85e 100644 --- a/apps/emqx_management/src/emqx_mgmt_api_nodes.erl +++ b/apps/emqx_management/src/emqx_mgmt_api_nodes.erl @@ -287,9 +287,8 @@ format(_Node, Info = #{memory_total := Total, memory_used := Used}) -> case log_path() of undefined -> <<"not found">>; - Path0 -> - Path = list_to_binary(Path0), - <> + Path -> + filename:join(SysPath, Path) end, Info#{ memory_total := emqx_mgmt_util:kmg(Total),