Merge pull request #7703 from DDDHuang/log_path

fix: bad log path
This commit is contained in:
Xinyu Liu 2022-04-21 18:37:57 +08:00 committed by GitHub
commit 3246993685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -287,9 +287,8 @@ format(_Node, Info = #{memory_total := Total, memory_used := Used}) ->
case log_path() of case log_path() of
undefined -> undefined ->
<<"not found">>; <<"not found">>;
Path0 -> Path ->
Path = list_to_binary(Path0), filename:join(SysPath, Path)
<<SysPath/binary, Path/binary>>
end, end,
Info#{ Info#{
memory_total := emqx_mgmt_util:kmg(Total), memory_total := emqx_mgmt_util:kmg(Total),