Skip to content

Commit 22b16a1

Browse files
Merge pull request #11280 from rabbitmq/mk-rabbit-direct-cosmetics
rabbit_direct: log cosmetics
2 parents 64a8ee6 + 68e4917 commit 22b16a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deps/rabbit/src/rabbit_direct.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ is_vhost_alive(VHost, {Username, _Password}, Pid) ->
158158
true -> true;
159159
false ->
160160
rabbit_log_connection:error(
161-
"Error on Direct connection ~tp~n"
161+
"Error on direct client connection ~tp~n"
162162
"access to vhost '~ts' refused for user '~ts': "
163163
"vhost '~ts' is down",
164164
[Pid, VHost, PrintedUsername, VHost]),
@@ -174,15 +174,15 @@ is_over_vhost_connection_limit(VHost, {Username, _Password}, Pid) ->
174174
false -> false;
175175
{true, Limit} ->
176176
rabbit_log_connection:error(
177-
"Error on Direct connection ~tp~n"
177+
"Error on direct client connection ~tp~n"
178178
"access to vhost '~ts' refused for user '~ts': "
179179
"vhost connection limit (~tp) is reached",
180180
[Pid, VHost, PrintedUsername, Limit]),
181181
true
182182
catch
183183
throw:{error, {no_such_vhost, VHost}} ->
184184
rabbit_log_connection:error(
185-
"Error on Direct connection ~tp~n"
185+
"Error on direct client connection ~tp~n"
186186
"vhost ~ts not found", [Pid, VHost]),
187187
true
188188
end.

0 commit comments

Comments
 (0)