diff options
author | Siri Hansen <[email protected]> | 2018-04-24 15:18:31 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-04-26 14:37:31 +0200 |
commit | 291cf6d8530f4e0ad2f22f199b5ae6975135bbb3 (patch) | |
tree | db38f4923022a0a58a6f08af7efe7ec97ba748d6 /erts | |
parent | d22fa5406d1b974f1a0c25f580e83093bf84b02b (diff) | |
download | otp-291cf6d8530f4e0ad2f22f199b5ae6975135bbb3.tar.gz otp-291cf6d8530f4e0ad2f22f199b5ae6975135bbb3.tar.bz2 otp-291cf6d8530f4e0ad2f22f199b5ae6975135bbb3.zip |
Test cuddle for logger
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/test/dgawd_handler.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/test/dgawd_handler.erl b/erts/emulator/test/dgawd_handler.erl index 52cdd26427..29b9d6ac7b 100644 --- a/erts/emulator/test/dgawd_handler.erl +++ b/erts/emulator/test/dgawd_handler.erl @@ -42,10 +42,10 @@ %%==================================================================== install() -> - gen_event:add_handler(error_logger, ?MODULE, []). + error_logger:add_report_handler(?MODULE, []). restore() -> - gen_event:delete_handler(error_logger, ?MODULE, []). + error_logger:delete_report_handler(?MODULE). got_dgawd_report() -> gen_event:call(error_logger, ?MODULE, got_dgawd_report, 10*60*1000). |