From a63d98a89019e686c2ce2f59e88f1817d608fa22 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Tue, 6 Nov 2012 12:52:42 +0000 Subject: use ~p after all otherwise we end up with {leftover_string,[102,111,111,98,97,114]} in the logs --- src/rabbit_channel.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.1