From: Christopher Piro Date: Mon, 14 Jan 2008 05:54:50 +0000 (+0000) Subject: [thrift] fix thrift_logger.erl when show_pid option is enabled X-Git-Tag: 0.2.0~1050 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=21db52de163e27f6cb01410fec812dc5f9e6e6a9;p=common%2Fthrift.git [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: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665422 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/erl/src/thrift_logger.erl b/lib/erl/src/thrift_logger.erl index c6d7074f..89efd6a8 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,