diff options
author | Matthias Radestock <matthias@lshift.net> | 2008-10-13 21:05:02 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@lshift.net> | 2008-10-13 21:05:02 +0100 |
commit | 9f13a84c4e2032753f7f0981973b4f3422a32784 (patch) | |
tree | c7a1b7d860e6d4b7ee2346d9aef013f788309f10 | |
parent | ba42dc1a68bf72d8bac6ee5cd46d2855c10fb2fc (diff) | |
download | rabbitmq-server-9f13a84c4e2032753f7f0981973b4f3422a32784.tar.gz |
don't log errors during deliverybug19489
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.erl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/rabbit_router.erl b/src/rabbit_router.erl index 41a8d64c..a2337647 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, []}, |