summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2008-10-13 21:05:02 +0100
committerMatthias Radestock <matthias@lshift.net>2008-10-13 21:05:02 +0100
commit4f2846ca1f24469792ca57a4971793954ecff366 (patch)
treec7a1b7d860e6d4b7ee2346d9aef013f788309f10
parent07f212e2942af3f5eb50543e0e36ccda026ac383 (diff)
downloadrabbitmq-server-git-4f2846ca1f24469792ca57a4971793954ecff366.tar.gz
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.
-rw-r--r--src/rabbit_router.erl8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/rabbit_router.erl b/src/rabbit_router.erl
index 41a8d64cb3..a233764766 100644
--- a/src/rabbit_router.erl
+++ b/src/rabbit_router.erl
@@ -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, []},