refactor(config): update the conf struct for logger

This commit is contained in:
Shawn 2021-08-20 18:46:47 +08:00
parent 985dce786c
commit 8ac8b9785b
1 changed files with 1 additions and 3 deletions

View File

@ -244,8 +244,7 @@ tr_cluster__discovery(Conf) ->
{Strategy, filter(options(Strategy, Conf))}. {Strategy, filter(options(Strategy, Conf))}.
tr_logger_level(Conf) -> tr_logger_level(Conf) ->
%% TODO: use the lowest level of all the handlers io:format(standard_error, "TODO: use the lowest level of all the handlers as primary level~n", []),
io:format(standard_error, "primary level", []),
conf_get("log.console_handler.level", Conf). conf_get("log.console_handler.level", Conf).
tr_logger(Conf) -> tr_logger(Conf) ->
@ -321,7 +320,6 @@ log_handler_conf(Conf) ->
}. }.
log_formatter(Conf) -> log_formatter(Conf) ->
io:format(standard_error, "log_formatter: ~p~n", [Conf]),
CharsLimit = case conf_get("chars_limit", Conf) of CharsLimit = case conf_get("chars_limit", Conf) of
unlimited -> unlimited; unlimited -> unlimited;
V when V > 0 -> V V when V > 0 -> V