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
commita0c98201114c44e8ece77d5385ee595fe54315fc (patch)
tree9f820c9707e77439495a24b03cda54cfb1eec4dc
parent49e569d2549a60f8c73028a1c86b8a1760565024 (diff)
downloadrabbitmq-server-git-a0c98201114c44e8ece77d5385ee595fe54315fc.tar.gz
use ~p after all
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 79815d68fe..a94d2ab53c 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.