From 5e225f1fa11fcdfa695356ea60a61e34b0fdfd55 Mon Sep 17 00:00:00 2001 From: Jan Chochol Date: Tue, 16 Jul 2019 08:51:04 +0200 Subject: Fix reloading logger_level OTP kernel application use "logger_level" configuration for configuring level in primary configuration. rebar3 uses "logger_info" for this purpose - ths is little bit confusing and probably mistake. This commit will unify behavior between kernel and rebar3o Fixes: 0303567d95f0 ("Reload logger config in shell") --- src/rebar_utils.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 066c673..5c7da92 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -493,7 +493,7 @@ reread_logger_config() -> _ -> %% Extract and apply settings related to primary configuration %% -- primary config is used for settings shared across handlers - LogLvlPrimary = proplists:get_value(logger_info, KernelCfg, all), + LogLvlPrimary = proplists:get_value(logger_level, KernelCfg, all), {FilterDefault, Filters} = case lists:keyfind(filters, 1, KernelCfg) of false -> {log, []}; -- cgit v1.1