[thrift] clean up error logging in Erlang

Summary: pushed all formatting out of thrift_error_logger.erl, reenable crash logs, standardize

Reviewed By: eletuchy

Test Plan: works with latest ch server


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665305 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/erl/src/server/tErlServer.erl b/lib/erl/src/server/tErlServer.erl
index 0e61e38..4e1f6fc 100644
--- a/lib/erl/src/server/tErlServer.erl
+++ b/lib/erl/src/server/tErlServer.erl
@@ -69,7 +69,7 @@
     %% listen
     case gen_tcp:listen(Port, Options) of 
 	{ok, ListenSocket} ->
-	    ?INFO(server_listening, {Port}),
+	    ?INFO("thrift server listening on port ~p", [Port]),
 
 	    This1 = oop:set(This, listenSocket, ListenSocket),
 
@@ -79,7 +79,7 @@
 	    {ok, This2};
 
 	{error, eaddrinuse} ->
-	    error_logger:format("couldn't bind port ~p, address in use", [Port]),
+	    ?ERROR("thrift couldn't bind port ~p, address in use", [Port]),
 	    {{error, eaddrinuse}, This} %% state before the accept
     end.
 
@@ -111,7 +111,7 @@
 %%     {noreply,State};												       %%
 
 %% terminate(Reason, State) ->											       %%
-%%     error_logger:info_msg( "Terminating error: ~p~n", [Reason]), % added					       %%
+%%     ?INFO( "Terminating error: ~p~n", [Reason]), % added	                 				       %%
 %%     gen_tcp:close(State#state.listen_socket),								       %%
 %%     ok.													       %%
 %% 														       %%