Skip to content

Commit 621e066

Browse files
Channel tracking: reduce log verbosity
When a connection is closed, we should not log that all of its channels are closed every single time. Per discussion with @mkuratczyk (cherry picked from commit 00f647c)
1 parent 8daf0fd commit 621e066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbit/src/rabbit_channel_tracking.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ handle_cast({channel_created, Details}) ->
8686
ok
8787
end;
8888
handle_cast({channel_closed, Details}) ->
89-
%% channel has terminated, unregister iff local
89+
%% channel has terminated, unregister if local
9090
case get_tracked_channel_by_pid(pget(pid, Details)) of
9191
[#tracked_channel{name = Name}] ->
9292
unregister_tracked(rabbit_tracking:id(node(), Name));
@@ -99,7 +99,7 @@ handle_cast({connection_closed, ConnDetails}) ->
9999
case pget(node, ConnDetails) of
100100
ThisNode ->
101101
TrackedChs = get_tracked_channels_by_connection_pid(ConnPid),
102-
rabbit_log_channel:info(
102+
rabbit_log_channel:debug(
103103
"Closing all channels from connection '~s' "
104104
"because it has been closed", [pget(name, ConnDetails)]),
105105
%% Shutting down channels will take care of unregistering the

0 commit comments

Comments
 (0)