summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_error_logger_file_h.erl6
-rw-r--r--src/rabbit_sasl_report_file_h.erl6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/rabbit_error_logger_file_h.erl b/src/rabbit_error_logger_file_h.erl
index 2de861b626..8e13a46c37 100644
--- a/src/rabbit_error_logger_file_h.erl
+++ b/src/rabbit_error_logger_file_h.erl
@@ -42,9 +42,9 @@ init({{File, Suffix}, []}) ->
Error ->
case init(File) of
{ok, FInfo} ->
- error_logger:error_msg("Error occured while appending " ++
- "~p log file to \"~s\":~n~p~n",
- [File, [File, Suffix], Error]),
+ rabbit_log:error("Error occured while appending " ++
+ "~p log file to \"~s\":~n~p~n",
+ [File, [File, Suffix], Error]),
io:format("~nOrignal log file could not be appended to " ++
"\"~s\"~n", [[File, Suffix]]),
{ok, FInfo};
diff --git a/src/rabbit_sasl_report_file_h.erl b/src/rabbit_sasl_report_file_h.erl
index 3b8a591ac0..cc46307412 100644
--- a/src/rabbit_sasl_report_file_h.erl
+++ b/src/rabbit_sasl_report_file_h.erl
@@ -43,9 +43,9 @@ init({{File, Suffix}, []}) ->
Error ->
case init(File) of
{ok, FInfo} ->
- error_logger:error_msg("Error occured while appending " ++
- "~p sasl log file to \"~s\":~n~p~n",
- [File, [File, Suffix], Error]),
+ rabbit_log:error("Error occured while appending " ++
+ "~p sasl log file to \"~s\":~n~p~n",
+ [File, [File, Suffix], Error]),
io:format("~nOrignal sasl log file could not be appended "
"to \"~s\"~n", [[File, Suffix]]),
{ok, FInfo};