summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Ansari <david.ansari@gmx.de>2022-06-14 14:12:33 +0200
committerDavid Ansari <david.ansari@gmx.de>2022-06-14 14:12:33 +0200
commitb2e821e77279700a69be0a1e5667779908e6c485 (patch)
treed1bb27484ffff1be7aca69a3665d3e2ad6b007c3
parent4fd20ad37698257edfe8d05c7f5ab182f5084eec (diff)
downloadrabbitmq-server-git-b2e821e77279700a69be0a1e5667779908e6c485.tar.gz
Change normal connection close log level from warning to debug
This line gets logged when the client closes the connection to the stream port before it authenticates successfully. Some external load balancers for example connect to the stream port to do health checks without sending any stream protocol frame. This commits prevents the RabbitMQ log from being polluted.
-rw-r--r--deps/rabbitmq_stream/src/rabbit_stream_reader.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/rabbitmq_stream/src/rabbit_stream_reader.erl b/deps/rabbitmq_stream/src/rabbit_stream_reader.erl
index d826d987de..d9e4cafbbc 100644
--- a/deps/rabbitmq_stream/src/rabbit_stream_reader.erl
+++ b/deps/rabbitmq_stream/src/rabbit_stream_reader.erl
@@ -490,8 +490,8 @@ handle_info(Msg,
NewConnectionStep]),
Transition(NewConnectionStep, StatemData, Connection1, State1);
{Closed, S} ->
- rabbit_log_connection:warning("Stream protocol connection socket ~w closed",
- [S]),
+ rabbit_log_connection:debug("Stream protocol connection socket ~w closed",
+ [S]),
stop;
{Error, S, Reason} ->
rabbit_log_connection:warning("Socket error ~p [~w]", [Reason, S]),