From b83a3a24756030a4548e21d41fdf349112ffab62 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@41a61cd8-c433-0410-bb1c-e256eeef9e11> Date: Mon, 14 Jan 2008 05:56:37 +0000 Subject: [PATCH] r1463@opsdev009 (orig r77585): cpiro | 2008-01-13 21:54:50 -0800 [thrift] fix thrift_logger.erl when show_pid option is enabled Summary: this gets rid of a lot of messy useless output every time the error logger prints something Reviewed By: eletuchy Test Plan: works as expected Revert Plan: ok Other Notes: contributed by Todd Lipcon (todd@amiestreet.com) git-svn-id: http://svn.facebook.com/svnroot/thrift/trunk@750 41a61cd8-c433-0410-bb1c-e256eeef9e11 --- lib/erl/src/thrift_logger.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/erl/src/thrift_logger.erl b/lib/erl/src/thrift_logger.erl index c6d7074..89efd6a 100644 --- a/lib/erl/src/thrift_logger.erl +++ b/lib/erl/src/thrift_logger.erl @@ -67,7 +67,7 @@ handle_event2(Symbol, Pid, Type, Message, State) -> % Message must be a string Banner = case config(show_pid) of true -> - sformat("~s ~s ~s", [Symbol, Pid, Type1]); + sformat("~s ~p ~s", [Symbol, Pid, Type1]); false -> sformat("~s~i ~s", [Symbol, Pid, Type1]) end, -- 2.11.4.GIT