diff options
author | Siri Hansen <[email protected]> | 2018-05-14 19:06:22 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2018-05-21 17:43:53 +0200 |
commit | d29fca17a0c053fca2e5961fb146e9aeefb55aa9 (patch) | |
tree | eb6b00cb523b9d2ab1c3bfc180f22f55de6e9492 /lib/kernel/test/logger_std_h_SUITE.erl | |
parent | c2c5e22e0c0f67d0c445113b7908dd07e4e8d4c4 (diff) | |
download | otp-d29fca17a0c053fca2e5961fb146e9aeefb55aa9.tar.gz otp-d29fca17a0c053fca2e5961fb146e9aeefb55aa9.tar.bz2 otp-d29fca17a0c053fca2e5961fb146e9aeefb55aa9.zip |
Hide handlers field in logger config map from the API
This field contains the index of all installed handlers. It is
internal and can not be altered by the user, and should therefore not
be visible.
Diffstat (limited to 'lib/kernel/test/logger_std_h_SUITE.erl')
-rw-r--r-- | lib/kernel/test/logger_std_h_SUITE.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/kernel/test/logger_std_h_SUITE.erl b/lib/kernel/test/logger_std_h_SUITE.erl index 83bc96620f..fc59d393e0 100644 --- a/lib/kernel/test/logger_std_h_SUITE.erl +++ b/lib/kernel/test/logger_std_h_SUITE.erl @@ -242,7 +242,8 @@ formatter_fail(Config) -> filters=>?DEFAULT_HANDLER_FILTERS([?MODULE])}), Pid = whereis(?MODULE), true = is_pid(Pid), - {ok,#{handlers:=H}} = logger:get_logger_config(), + #{handlers:=HC1} = logger:i(), + H = [Id || {Id,_,_} <- HC1], true = lists:member(?MODULE,H), %% Formatter is added automatically @@ -271,7 +272,8 @@ formatter_fail(Config) -> %% Check that handler is still alive and was never dead Pid = whereis(?MODULE), - {ok,#{handlers:=H}} = logger:get_logger_config(), + #{handlers:=HC2} = logger:i(), + H = [Id || {Id,_,_} <- HC2], ok. |