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:
parent
07f212e294
commit
4f2846ca1f
|
|
@ -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, []},
|
||||
|
|
|
|||
Loading…
Reference in New Issue