summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-11-06 12:52:42 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2012-11-06 12:52:42 +0000
commita63d98a89019e686c2ce2f59e88f1817d608fa22 (patch)
tree9f820c9707e77439495a24b03cda54cfb1eec4dc
parent7f23856e81433e12a3ecfba5044662744b21d7c6 (diff)
downloadrabbitmq-server-bug19376.tar.gz
use ~p after allbug19376
otherwise we end up with {leftover_string,[102,111,111,98,97,114]} in the logs
-rw-r--r--src/rabbit_channel.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 79815d68..a94d2ab5 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -477,7 +477,7 @@ check_user_id_header(#'P_basic'{user_id = Claimed},
check_expiration_header(Props) ->
case rabbit_basic:parse_expiration(Props) of
{ok, _} -> ok;
- {error, E} -> precondition_failed("invalid expiration '~s': ~w",
+ {error, E} -> precondition_failed("invalid expiration '~s': ~p",
[Props#'P_basic'.expiration, E])
end.