From b2e821e77279700a69be0a1e5667779908e6c485 Mon Sep 17 00:00:00 2001 From: David Ansari Date: Tue, 14 Jun 2022 14:12:33 +0200 Subject: [PATCH] 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. --- deps/rabbitmq_stream/src/rabbit_stream_reader.erl | 4 ++-- 1 file 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]),