summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-06 11:03:51 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-06 11:03:51 +0100
commit769fcf608fdd822cfb296f26c55714e9de535b64 (patch)
tree07714f5a16791e15e6c4e44bc5e84352be7a9391
parentae0c0323cc00558b54b73dd13ae792616778e939 (diff)
downloadrabbitmq-server-git-769fcf608fdd822cfb296f26c55714e9de535b64.tar.gz
re-add log handlers
Also, delete the log handlers in a previous test since it's not done automatically anymore.
-rw-r--r--src/rabbit_tests.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl
index 60a755545e..0c88db6288 100644
--- a/src/rabbit_tests.erl
+++ b/src/rabbit_tests.erl
@@ -812,6 +812,8 @@ test_log_management() ->
ok = control_action(rotate_logs, []),
%% logging directed to tty (handlers were removed in last test)
+ ok = delete_log_handlers([rabbit_sasl_report_file_h,
+ rabbit_error_logger_file_h]),
ok = clean_logs([MainLog, SaslLog], Suffix),
ok = application:set_env(rabbit, sasl_error_logger, tty),
ok = application:set_env(rabbit, error_logger, tty),
@@ -827,6 +829,8 @@ test_log_management() ->
%% cleanup
ok = application:set_env(rabbit, sasl_error_logger, {file, SaslLog}),
ok = application:set_env(rabbit, error_logger, {file, MainLog}),
+ ok = add_log_handlers([{rabbit_error_logger_file_h, MainLog},
+ {rabbit_sasl_report_file_h, SaslLog}]),
passed.
test_log_management_during_startup() ->