fix: node info, log path only path
@@ -302,7 +302,7 @@ log_path() ->
get_log_path(Configs).
get_log_path([#{config := #{file := Path}} | _LoggerConfigs]) ->
- Path;
+ filename:dirname(Path);
get_log_path([_LoggerConfig | LoggerConfigs]) ->
get_log_path(LoggerConfigs);
get_log_path([]) ->
@@ -75,7 +75,7 @@ t_log_path(_) ->
{ok, NodeInfo} = emqx_mgmt_api_test_util:request_api(get, NodePath),
#{<<"log_path">> := Path} = emqx_json:decode(NodeInfo, [return_maps]),
?assertEqual(
- <<"emqx-test.log">>,
+ <<"log">>,
filename:basename(Path)
).