diff options
author | Siri Hansen <[email protected]> | 2018-06-08 14:20:00 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-06-08 14:38:46 +0200 |
commit | c8c1c67d331b5d1ec8cd3cdad5d8231063d7c5d8 (patch) | |
tree | 8b0827e9d741aea9d17dc7c2067258772be4d047 /lib/kernel/test/logger_SUITE.erl | |
parent | a1c498df4b4ee20172def79c469e6fd8dd41e841 (diff) | |
download | otp-c8c1c67d331b5d1ec8cd3cdad5d8231063d7c5d8.tar.gz otp-c8c1c67d331b5d1ec8cd3cdad5d8231063d7c5d8.tar.bz2 otp-c8c1c67d331b5d1ec8cd3cdad5d8231063d7c5d8.zip |
[logger] Change handler config to accept all levels by default
Diffstat (limited to 'lib/kernel/test/logger_SUITE.erl')
-rw-r--r-- | lib/kernel/test/logger_SUITE.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kernel/test/logger_SUITE.erl b/lib/kernel/test/logger_SUITE.erl index f7ec59a7b7..a193ae4011 100644 --- a/lib/kernel/test/logger_SUITE.erl +++ b/lib/kernel/test/logger_SUITE.erl @@ -111,7 +111,7 @@ add_remove_handler(_Config) -> [add] = test_server:messages_get(), #{handlers:=Hs} = logger:i(), {value,_,Hs0} = lists:keytake(h1,1,Hs), - {ok,{?MODULE,#{level:=info,filters:=[],filter_default:=log}}} = % defaults + {ok,{?MODULE,#{level:=debug,filters:=[],filter_default:=log}}} = % defaults logger:get_handler_config(h1), ok = logger:set_handler_config(h1,filter_default,stop), [changing_config] = test_server:messages_get(), @@ -209,13 +209,13 @@ add_remove_filter(cleanup,_Config) -> change_config(_Config) -> %% Overwrite handler config - check that defaults are added - ok = logger:add_handler(h1,?MODULE,#{level=>debug,custom=>custom}), - {ok,{?MODULE,#{level:=debug,filter_default:=log,custom:=custom}}} = + ok = logger:add_handler(h1,?MODULE,#{level=>info,custom=>custom}), + {ok,{?MODULE,#{level:=info,filter_default:=log,custom:=custom}}} = logger:get_handler_config(h1), register(callback_receiver,self()), ok = logger:set_handler_config(h1,#{filter_default=>stop}), [changing_config] = test_server:messages_get(), - {ok,{?MODULE,#{level:=info,filter_default:=stop}=C2}} = + {ok,{?MODULE,#{level:=debug,filter_default:=stop}=C2}} = logger:get_handler_config(h1), false = maps:is_key(custom,C2), {error,fail} = logger:set_handler_config(h1,#{conf_call=>fun() -> {error,fail} end}), |