فهرست منبع

fix(emqx_management): ensure binary string for log_path

Zaiming (Stone) Shi 2 سال پیش
والد
کامیت
469071df00
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      apps/emqx_management/src/emqx_mgmt.erl

+ 1 - 1
apps/emqx_management/src/emqx_mgmt.erl

@@ -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]) ->