summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiana Corbacho <diana@rabbitmq.com>2018-12-06 15:33:18 +0000
committerDiana Corbacho <diana@rabbitmq.com>2018-12-06 15:33:18 +0000
commitbadf8590eeaa5e1e91da17505247d6d32c0260a6 (patch)
tree394bcb44c1f073ccbfd2b73ff5d98e263e2242b2
parentd07cccc623116047ed5e230c6543a97ad5de2e6e (diff)
downloadrabbitmq-server-git-badf8590eeaa5e1e91da17505247d6d32c0260a6.tar.gz
Ignore error when dead letter exchange cannot be found
Avoids swamping the log, same as classic queues [#162411672]
-rw-r--r--src/rabbit_quorum_queue.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rabbit_quorum_queue.erl b/src/rabbit_quorum_queue.erl
index 2d44c535b3..5e854a4657 100644
--- a/src/rabbit_quorum_queue.erl
+++ b/src/rabbit_quorum_queue.erl
@@ -564,8 +564,7 @@ dead_letter_publish(X, RK, QName, ReasonMsgs) ->
[rabbit_dead_letter:publish(Msg, Reason, Exchange, RK, QName)
|| {Reason, Msg} <- ReasonMsgs];
{error, not_found} ->
- rabbit_log:warning("Dead lettering for quorum queue ~p failed: "
- "exchange ~p not found", [QName, X])
+ ok
end.
%% TODO escape hack