diff options
| author | Tim Watson <tim@rabbitmq.com> | 2013-06-06 15:07:03 +0100 |
|---|---|---|
| committer | Tim Watson <tim@rabbitmq.com> | 2013-06-06 15:07:03 +0100 |
| commit | 8c51f18527beee3b661b32f985458f4c87f11fb5 (patch) | |
| tree | d2077b84dd5c1f25e18902c1f4a3defb262a9810 | |
| parent | 6d3e65ee9b9c57d2965280591d0b0f3894c287b4 (diff) | |
| download | rabbitmq-server-git-8c51f18527beee3b661b32f985458f4c87f11fb5.tar.gz | |
allows log the per-msg-ttl if it is present
| -rw-r--r-- | src/rabbit_amqqueue_process.erl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl index d973e9eac5..d3e88e8bf5 100644 --- a/src/rabbit_amqqueue_process.erl +++ b/src/rabbit_amqqueue_process.erl @@ -898,10 +898,7 @@ make_dead_letter_msg(Msg = #basic_message{content = Content, end, ReasonBin = list_to_binary(atom_to_list(Reason)), TimeSec = rabbit_misc:now_ms() div 1000, - PerMsgTTL = case Reason of - expired -> per_msg_ttl_header(Content#content.properties); - _ -> [] - end, + PerMsgTTL = per_msg_ttl_header(Content#content.properties), HeadersFun2 = fun (Headers) -> %% The first routing key is the one specified in the |
