Przeglądaj źródła

feat: add 'format' as alias for log 'formatter'

Zaiming (Stone) Shi 2 lat temu
rodzic
commit
aea1e80290
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      apps/emqx_conf/src/emqx_conf_schema.erl

+ 1 - 0
apps/emqx_conf/src/emqx_conf_schema.erl

@@ -1303,6 +1303,7 @@ log_handler_common_confs(Handler, Default) ->
             sc(
                 hoconsc:enum([text, json]),
                 #{
+                    aliases => [format],
                     default => maps:get(formatter, Default, text),
                     desc => ?DESC("common_handler_formatter"),
                     importance => ?IMPORTANCE_MEDIUM