summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Watson <tim@rabbitmq.com>2013-06-06 15:07:03 +0100
committerTim Watson <tim@rabbitmq.com>2013-06-06 15:07:03 +0100
commit8c51f18527beee3b661b32f985458f4c87f11fb5 (patch)
treed2077b84dd5c1f25e18902c1f4a3defb262a9810 /src
parent6d3e65ee9b9c57d2965280591d0b0f3894c287b4 (diff)
downloadrabbitmq-server-git-8c51f18527beee3b661b32f985458f4c87f11fb5.tar.gz
allows log the per-msg-ttl if it is present
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_amqqueue_process.erl5
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