aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/logger.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-08-14 11:43:18 +0200
committerSiri Hansen <[email protected]>2018-09-12 14:58:02 +0200
commitb6289e914c67bd786da829503b144c039303bfd3 (patch)
tree3c31594ce01e8167a4f5c297f987fc4aa0639f54 /lib/kernel/src/logger.erl
parent6d665a8296999822e4d516343d0e21ed62e70b37 (diff)
downloadotp-b6289e914c67bd786da829503b144c039303bfd3.tar.gz
otp-b6289e914c67bd786da829503b144c039303bfd3.tar.bz2
otp-b6289e914c67bd786da829503b144c039303bfd3.zip
[logger] Refactor some logger internals
Diffstat (limited to 'lib/kernel/src/logger.erl')
-rw-r--r--lib/kernel/src/logger.erl7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/kernel/src/logger.erl b/lib/kernel/src/logger.erl
index 0020fe220b..7b1377b8ca 100644
--- a/lib/kernel/src/logger.erl
+++ b/lib/kernel/src/logger.erl
@@ -434,12 +434,7 @@ get_primary_config() ->
HandlerId :: handler_id(),
Config :: handler_config().
get_handler_config(HandlerId) ->
- case logger_config:get(?LOGGER_TABLE,HandlerId) of
- {ok,{_,Config}} ->
- {ok,Config};
- Error ->
- Error
- end.
+ logger_config:get(?LOGGER_TABLE,HandlerId).
-spec get_handler_config() -> [Config] when
Config :: handler_config().