[thrift] fix thrift_logger.erl when show_pid option is enabled
authorChristopher Piro <cpiro@apache.org>
Mon, 14 Jan 2008 05:54:50 +0000 (05:54 +0000)
committerChristopher Piro <cpiro@apache.org>
Mon, 14 Jan 2008 05:54:50 +0000 (05:54 +0000)
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

lib/erl/src/thrift_logger.erl

index c6d7074..89efd6a 100644 (file)
@@ -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,