diff options
author | Siri Hansen <[email protected]> | 2018-09-06 14:30:36 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-09-12 14:58:02 +0200 |
commit | 625616652595249ff0866d4de8a04f3c8fa0eec4 (patch) | |
tree | 72374502c68a2ff77f537018089693e016a5d4cb /lib/kernel/src | |
parent | a9a72da93e9b93a1d7ee9936b8e223545277480e (diff) | |
download | otp-625616652595249ff0866d4de8a04f3c8fa0eec4.tar.gz otp-625616652595249ff0866d4de8a04f3c8fa0eec4.tar.bz2 otp-625616652595249ff0866d4de8a04f3c8fa0eec4.zip |
[logger] Improve code coverage in test
Diffstat (limited to 'lib/kernel/src')
-rw-r--r-- | lib/kernel/src/logger_server.erl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/kernel/src/logger_server.erl b/lib/kernel/src/logger_server.erl index 01ac1b4b50..e3827c6475 100644 --- a/lib/kernel/src/logger_server.erl +++ b/lib/kernel/src/logger_server.erl @@ -372,7 +372,7 @@ sanity_check(Owner,Key,Value) -> sanity_check(HandlerId,Config) when is_map(Config) -> sanity_check_1(HandlerId,maps:to_list(Config)); sanity_check(_,Config) -> - {error,{invalid_handler_config,Config}}. + {error,{invalid_config,Config}}. sanity_check_1(Owner,Config) when is_list(Config) -> try @@ -417,8 +417,6 @@ check_mod(Mod) when is_atom(Mod) -> check_mod(Mod) -> throw({invalid_module,Mod}). -check_level({LevelInt,cached}) when LevelInt>=?EMERGENCY, LevelInt=<?DEBUG -> - ok; check_level(Level) -> case lists:member(Level,?LEVELS) of true -> |