summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert@lshift.net>2008-08-27 16:24:18 +0100
committerHubert Plociniczak <hubert@lshift.net>2008-08-27 16:24:18 +0100
commitda73cb0d0444fda0d3a70f196f68a51a75707c1c (patch)
tree266d16bea2929c4f4ec9b44776c915dc20e1c36a
parent654ab15a9c6e91edf03514a896484e03917c671c (diff)
downloadrabbitmq-server-git-da73cb0d0444fda0d3a70f196f68a51a75707c1c.tar.gz
Added few missing articles
-rw-r--r--docs/rabbitmqctl.pod10
-rw-r--r--src/rabbit.erl2
-rw-r--r--src/rabbit_error_logger_file_h.erl4
-rw-r--r--src/rabbit_sasl_report_file_h.erl4
4 files changed, 10 insertions, 10 deletions
diff --git a/docs/rabbitmqctl.pod b/docs/rabbitmqctl.pod
index 927fd8af40..6c84cbb143 100644
--- a/docs/rabbitmqctl.pod
+++ b/docs/rabbitmqctl.pod
@@ -69,10 +69,10 @@ force_reset
rotate_logs [suffix]
instruct the RabbitMQ node to rotate the log files. The RabbitMQ
broker will attempt to append the current contents of the log file
- to the file with name composed of the original name and the suffix.
- It will create a new file if such a file does not already exist.
- When no I<suffix> is specified, the log file is simply reopened;
- no rotation takes place.
+ to the file with the name composed of the original name and the
+ suffix. It will create a new file if such a file does not already
+ exist. When no I<suffix> is specified, the log file is simply
+ reopened; no rotation takes place.
This command might be helpful when you are e.g. writing your own
logrotate script and you do not want to restart the RabbitMQ node.
@@ -129,7 +129,7 @@ default Erlang node:
rabbitmqctl map_user_vhost foo test
-Append current logs' content to the files with ".1" suffix and reopen
+Append the current logs' content to the files with ".1" suffix and reopen
them:
rabbitmqctl rotate_logs .1
diff --git a/src/rabbit.erl b/src/rabbit.erl
index 687d0b30b7..6376d2ee5f 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -171,7 +171,7 @@ start(normal, []) ->
rabbit_error_logger, [DefaultVHost]),
ok = start_builtin_amq_applications(),
%% Swap default handlers with rabbit wrappers
- %% to simplify swapping of log handlers later
+ %% to simplify the swapping of log handlers later
ok = rotate_logs(error_log_location(default), "",
error_logger_file_h,
rabbit_error_logger_file_h),
diff --git a/src/rabbit_error_logger_file_h.erl b/src/rabbit_error_logger_file_h.erl
index 20c6b77800..d5c0ab0891 100644
--- a/src/rabbit_error_logger_file_h.erl
+++ b/src/rabbit_error_logger_file_h.erl
@@ -29,11 +29,11 @@
-export([init/1, handle_event/2, handle_call/2, handle_info/2, terminate/2, code_change/3]).
-%% rabbit_error_logger_file_h is a wrapper around error_logger_file_h
+%% rabbit_error_logger_file_h is a wrapper around the error_logger_file_h
%% module because the original's init/1 does not match properly
%% with the result of closing the old handler when swapping handlers.
%% The first init/1 additionally allows for simple log rotation
-%% when suffix is not ""
+%% when the suffix is not the empty string.
%% Used only when swapping handlers in log rotation
init({{File, Suffix}, []}) ->
diff --git a/src/rabbit_sasl_report_file_h.erl b/src/rabbit_sasl_report_file_h.erl
index eb5bf09178..15f1bfe276 100644
--- a/src/rabbit_sasl_report_file_h.erl
+++ b/src/rabbit_sasl_report_file_h.erl
@@ -29,11 +29,11 @@
-export([init/1, handle_event/2, handle_call/2, handle_info/2, terminate/2, code_change/3]).
-%% rabbit_sasl_report_file_h is a wrapper around sasl_report_file_h
+%% rabbit_sasl_report_file_h is a wrapper around the sasl_report_file_h
%% module because the original's init/1 does not match properly
%% with the result of closing the old handler when swapping handlers.
%% The first init/1 additionally allows for simple log rotation
-%% when suffix is not ""
+%% when the suffix is not the empty string.
%% Used only when swapping handlers and performing
%% log rotation