fix(emqx_management): ensure binary string for log_path

This commit is contained in:
Zaiming (Stone) Shi 2023-03-01 07:45:36 +01:00
parent 8331c8fff0
commit 469071df00
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ log_path() ->
undefined -> undefined ->
<<"log.file_handler.default.enable is false, not logging to file.">>; <<"log.file_handler.default.enable is false, not logging to file.">>;
Path -> Path ->
filename:join(RootDir, Path) iolist_to_binary(filename:join(RootDir, Path))
end. end.
get_log_path([#{config := #{file := Path}} | _LoggerConfigs]) -> get_log_path([#{config := #{file := Path}} | _LoggerConfigs]) ->