don't log errors during delivery

If the target queue died normally we don't care, and if it died
abnormally the reason is logged by the queue supervisor. In both cases
we treat the message as unrouted.
This commit is contained in:
Matthias Radestock 2008-10-13 21:05:02 +01:00
parent 07f212e294
commit 4f2846ca1f
1 changed files with 3 additions and 5 deletions

View File

@ -150,11 +150,9 @@ run_bindings(QPids, IsMandatory, IsImmediate, Txn, Message) ->
fun (QPid, {Routed, Handled}) ->
case catch rabbit_amqqueue:deliver(IsMandatory, IsImmediate,
Txn, Message, QPid) of
true -> {true, [QPid | Handled]};
false -> {true, Handled};
{'EXIT', Reason} -> rabbit_log:warning("delivery to ~p failed:~n~p~n",
[QPid, Reason]),
{Routed, Handled}
true -> {true, [QPid | Handled]};
false -> {true, Handled};
{'EXIT', _Reason} -> {Routed, Handled}
end
end,
{false, []},