You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2008/06/11 02:57:19 UTC

svn commit: r666414 - in /incubator/thrift/trunk/lib/alterl/src: thrift_processor.erl thrift_server.erl

Author: dreiss
Date: Tue Jun 10 17:57:19 2008
New Revision: 666414

URL: http://svn.apache.org/viewvc?rev=666414&view=rev
Log:
Comment out some noisy output from thrift_processor and thrift_server

Modified:
    incubator/thrift/trunk/lib/alterl/src/thrift_processor.erl
    incubator/thrift/trunk/lib/alterl/src/thrift_server.erl

Modified: incubator/thrift/trunk/lib/alterl/src/thrift_processor.erl
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/alterl/src/thrift_processor.erl?rev=666414&r1=666413&r2=666414&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/alterl/src/thrift_processor.erl (original)
+++ incubator/thrift/trunk/lib/alterl/src/thrift_processor.erl Tue Jun 10 17:57:19 2008
@@ -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 ->

Modified: incubator/thrift/trunk/lib/alterl/src/thrift_server.erl
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/alterl/src/thrift_server.erl?rev=666414&r1=666413&r2=666414&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/alterl/src/thrift_server.erl (original)
+++ incubator/thrift/trunk/lib/alterl/src/thrift_server.erl Tue Jun 10 17:57:19 2008
@@ -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),