Skip to content

Commit 2bddf88

Browse files
committed
Fix log_management test in OTP 20
The Format structure for error_logger:error_report(Type, Report) is different in OTP 20, otherwise nothing will get logged in the SASL log file.
1 parent 5432d05 commit 2bddf88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit_inbroker_non_parallel_SUITE.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ non_empty_files(Files) ->
400400

401401
test_logs_working(MainLogFile, SaslLogFile) ->
402402
ok = rabbit_log:error("Log a test message~n"),
403-
ok = error_logger:error_report(crash_report, [fake_crash_report, ?MODULE]),
403+
ok = error_logger:error_report(crash_report, [[?MODULE, 1], []]),
404404
%% give the error loggers some time to catch up
405405
timer:sleep(100),
406406
[true, true] = non_empty_files([MainLogFile, SaslLogFile]),

0 commit comments

Comments
 (0)