diff options
author | Siri Hansen <[email protected]> | 2018-09-17 12:45:07 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-09-17 12:45:07 +0200 |
commit | 926bfd6f0bd71a8942f268cf23a37b55776600d2 (patch) | |
tree | 0f8d6c9101815eb4245035dd5e43cb93676b8fdd /lib/kernel/test/logger_formatter_SUITE.erl | |
parent | 3a33f5ffe2d130789a7ebc45df75dbb56988016e (diff) | |
parent | 6073d37a5a0691704d0fa1a5ff9289ba9e35c8ed (diff) | |
download | otp-926bfd6f0bd71a8942f268cf23a37b55776600d2.tar.gz otp-926bfd6f0bd71a8942f268cf23a37b55776600d2.tar.bz2 otp-926bfd6f0bd71a8942f268cf23a37b55776600d2.zip |
Merge branch 'siri/logger/post-21-continues/OTP-15132' into maint
* siri/logger/post-21-continues/OTP-15132:
[logger] Read config before terminating handler process
[error_logger] Handle report_cb with arity 2
[proc_lib] Improve crash reports for single line logging
[logger] Include single_line option to report_cb
[logger] Check for deadlock when removing filters
[logger] Fix spec for handler callbacks to always return ok
[logger] Increase timetrap timer for handler_requests_under_load test
[logger] Improve code coverage in test
[logger] Refactor, and add error detection for configuration
[logger] Fix logger_disk_log_h_SUITE:sync and add som debug info
[logger] Update doc about file options in logger_std_h
[logger] Remove encoding option from logger_formatter
Remove outdated reference to error loggers
[logger] Refactor some logger internals
Diffstat (limited to 'lib/kernel/test/logger_formatter_SUITE.erl')
-rw-r--r-- | lib/kernel/test/logger_formatter_SUITE.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/kernel/test/logger_formatter_SUITE.erl b/lib/kernel/test/logger_formatter_SUITE.erl index 2ec4b243cf..8c13f0f908 100644 --- a/lib/kernel/test/logger_formatter_SUITE.erl +++ b/lib/kernel/test/logger_formatter_SUITE.erl @@ -765,6 +765,8 @@ check_config(_Config) -> %% Test that formatter config can be changed, and that the default %% template is updated accordingly update_config(_Config) -> + {error,{not_found,?MODULE}} = logger:update_formatter_config(?MODULE,#{}), + logger:add_handler_filter(default,silence,{fun(_,_) -> stop end,ok}), ok = logger:add_handler(?MODULE,?MODULE,#{}), D = lists:seq(1,1000), @@ -817,6 +819,11 @@ update_config(_Config) -> ct:log("~p",[C6]), ["=NOTICE REPORT==== "++_,_D6] = Lines6, + {error,{invalid_formatter_config,bad}} = + logger:update_formatter_config(?MODULE,bad), + {error,{invalid_formatter_config,logger_formatter,{depth,bad}}} = + logger:update_formatter_config(?MODULE,depth,bad), + ok. update_config(cleanup,_Config) -> |