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}) -> |       fun (QPid, {Routed, Handled}) -> | ||||||
|               case catch rabbit_amqqueue:deliver(IsMandatory, IsImmediate, |               case catch rabbit_amqqueue:deliver(IsMandatory, IsImmediate, | ||||||
|                                                  Txn, Message, QPid) of |                                                  Txn, Message, QPid) of | ||||||
|                   true             -> {true, [QPid | Handled]}; |                   true              -> {true, [QPid | Handled]}; | ||||||
|                   false            -> {true, Handled}; |                   false             -> {true, Handled}; | ||||||
|                   {'EXIT', Reason} -> rabbit_log:warning("delivery to ~p failed:~n~p~n", |                   {'EXIT', _Reason} -> {Routed, Handled} | ||||||
|                                                          [QPid, Reason]), |  | ||||||
|                                       {Routed, Handled} |  | ||||||
|               end |               end | ||||||
|       end, |       end, | ||||||
|       {false, []}, |       {false, []}, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue