From fc44c41253a5d56e15facadeef3677162ae6f90f Mon Sep 17 00:00:00 2001 From: David Reiss Date: Wed, 11 Jun 2008 00:57:19 +0000 Subject: [PATCH] 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 --- lib/alterl/src/thrift_processor.erl | 7 +++---- lib/alterl/src/thrift_server.erl | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/alterl/src/thrift_processor.erl b/lib/alterl/src/thrift_processor.erl index d89b91c9..c3434cd3 100644 --- a/lib/alterl/src/thrift_processor.erl +++ b/lib/alterl/src/thrift_processor.erl @@ -19,7 +19,6 @@ start(ProtocolGenerator, Service, Handler) when is_function(ProtocolGenerator, 0 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 @@ loop(State = #state{in_protocol = IProto, 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 @@ handle_function(State = #state{in_protocol = IProto, 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 a639eb04..54c70856 100644 --- a/lib/alterl/src/thrift_server.erl +++ b/lib/alterl/src/thrift_server.erl @@ -118,8 +118,7 @@ code_change(_OldVsn, State, _Extra) -> 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), -- 2.17.1