Comment out some noisy output from thrift_processor and thrift_server
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666414 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/alterl/src/thrift_processor.erl b/lib/alterl/src/thrift_processor.erl
index d89b91c..c3434cd 100644
--- a/lib/alterl/src/thrift_processor.erl
+++ b/lib/alterl/src/thrift_processor.erl
@@ -19,7 +19,6 @@
init(ProtocolGenerator, Service, Handler) ->
{ok, IProt, OProt} = ProtocolGenerator(),
- io:format("Processor started~n"),
loop(#state{in_protocol = IProt,
out_protocol = OProt,
service = Service,
@@ -33,7 +32,7 @@
ok= handle_function(State, list_to_atom(Function)),
loop(State);
{error, closed} ->
- error_logger:info_msg("Client disconnected~n"),
+ % error_logger:info_msg("Client disconnected~n"),
ok
end.
@@ -49,8 +48,8 @@
try
{Micro, Result} = better_timer(Handler, handle_function, [Function, Params]),
- error_logger:info_msg("Processed ~p(~p) in ~.4fms~n",
- [Function, Params, Micro/1000.0]),
+ % error_logger:info_msg("Processed ~p(~p) in ~.4fms~n",
+ % [Function, Params, Micro/1000.0]),
handle_success(State, Function, Result)
catch
throw:Exception when is_tuple(Exception), size(Exception) > 0 ->
diff --git a/lib/alterl/src/thrift_server.erl b/lib/alterl/src/thrift_server.erl
index a639eb0..54c7085 100644
--- a/lib/alterl/src/thrift_server.erl
+++ b/lib/alterl/src/thrift_server.erl
@@ -118,8 +118,7 @@
acceptor(ListenSocket, Service, Handler)
when is_port(ListenSocket), is_atom(Handler) ->
{ok, Socket} = gen_tcp:accept(ListenSocket),
- error_logger:info_msg("Accepted client"),
-
+% error_logger:info_msg("Accepted client"),
ProtoGen = fun() ->
{ok, SocketTransport} = thrift_socket_transport:new(Socket),