Explorar o código

fix(emqx_management): ensure binary string for log_path

Zaiming (Stone) Shi %!s(int64=3) %!d(string=hai) anos
pai
achega
469071df00
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ->
             <<"log.file_handler.default.enable is false, not logging to file.">>;
         Path ->
-            filename:join(RootDir, Path)
+            iolist_to_binary(filename:join(RootDir, Path))
     end.
 
 get_log_path([#{config := #{file := Path}} | _LoggerConfigs]) ->