فهرست منبع

fix: display The log path has not been set when can't find log_path

Zhongwen Deng 3 سال پیش
والد
کامیت
eb6977f23e
2فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 1 0
      apps/emqx/test/emqx_static_checks_data/5.0.0.bpapi
  2. 5 2
      apps/emqx_management/src/emqx_mgmt_api_nodes.erl

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 0
apps/emqx/test/emqx_static_checks_data/5.0.0.bpapi


+ 5 - 2
apps/emqx_management/src/emqx_mgmt_api_nodes.erl

@@ -221,7 +221,10 @@ fields(node_info) ->
         {log_path,
         {log_path,
             mk(
             mk(
                 string(),
                 string(),
-                #{desc => <<"Path to log files">>, example => "path/to/log | not found"}
+                #{
+                    desc => <<"Path to log files">>,
+                    example => "path/to/log | The log path is not yet set"
+                }
             )},
             )},
         {role,
         {role,
             mk(
             mk(
@@ -286,7 +289,7 @@ format(_Node, Info = #{memory_total := Total, memory_used := Used}) ->
     LogPath =
     LogPath =
         case log_path() of
         case log_path() of
             undefined ->
             undefined ->
-                <<"not found">>;
+                <<"The log path is not yet set">>;
             Path ->
             Path ->
                 filename:join(SysPath, Path)
                 filename:join(SysPath, Path)
         end,
         end,