From 8ac8b9785b6410be8921914513f4e5495814837a Mon Sep 17 00:00:00 2001 From: Shawn <506895667@qq.com> Date: Fri, 20 Aug 2021 18:46:47 +0800 Subject: [PATCH] refactor(config): update the conf struct for logger --- apps/emqx_machine/src/emqx_machine_schema.erl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/emqx_machine/src/emqx_machine_schema.erl b/apps/emqx_machine/src/emqx_machine_schema.erl index 23b43d5aa..91e1a58eb 100644 --- a/apps/emqx_machine/src/emqx_machine_schema.erl +++ b/apps/emqx_machine/src/emqx_machine_schema.erl @@ -244,8 +244,7 @@ tr_cluster__discovery(Conf) -> {Strategy, filter(options(Strategy, Conf))}. tr_logger_level(Conf) -> - %% TODO: use the lowest level of all the handlers - io:format(standard_error, "primary level", []), + io:format(standard_error, "TODO: use the lowest level of all the handlers as primary level~n", []), conf_get("log.console_handler.level", Conf). tr_logger(Conf) -> @@ -321,7 +320,6 @@ log_handler_conf(Conf) -> }. log_formatter(Conf) -> - io:format(standard_error, "log_formatter: ~p~n", [Conf]), CharsLimit = case conf_get("chars_limit", Conf) of unlimited -> unlimited; V when V > 0 -> V