diff options
author | Siri Hansen <[email protected]> | 2018-06-07 11:47:05 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-06-08 14:48:14 +0200 |
commit | f20c281be6fa27e2da1c543a64029531c5f00325 (patch) | |
tree | 531da0cc6860757a7fce868a2b4b484b5c685055 /lib/kernel/src/error_logger.erl | |
parent | 7f6e61ca0d752c780ffadd7aacf29aaab0783c78 (diff) | |
download | otp-f20c281be6fa27e2da1c543a64029531c5f00325.tar.gz otp-f20c281be6fa27e2da1c543a64029531c5f00325.tar.bz2 otp-f20c281be6fa27e2da1c543a64029531c5f00325.zip |
[logger] Update return values from get_handler_config/0,1 and get_config/0
Module and Id are now always included as fields in Config, so these
are no longer returned as separate elements.
Diffstat (limited to 'lib/kernel/src/error_logger.erl')
-rw-r--r-- | lib/kernel/src/error_logger.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/src/error_logger.erl b/lib/kernel/src/error_logger.erl index 3bdd70fa96..ef930317b1 100644 --- a/lib/kernel/src/error_logger.erl +++ b/lib/kernel/src/error_logger.erl @@ -513,7 +513,7 @@ tty(true) -> _ = case lists:member(error_logger_tty_h, which_report_handlers()) of false -> case logger:get_handler_config(default) of - {ok,{logger_std_h,#{config:=#{type:=standard_io}}}} -> + {ok,#{module:=logger_std_h,config:=#{type:=standard_io}}} -> logger:remove_handler_filter(default, error_logger_tty_false); _ -> @@ -533,7 +533,7 @@ tty(false) -> delete_report_handler(error_logger_tty_h), _ = logger:remove_handler(error_logger_tty_true), _ = case logger:get_handler_config(default) of - {ok,{logger_std_h,#{config:=#{type:=standard_io}}}} -> + {ok,#{module:=logger_std_h,config:=#{type:=standard_io}}} -> logger:add_handler_filter(default,error_logger_tty_false, {fun(_,_) -> stop end, ok}); _ -> |