From: David Reiss Date: Mon, 30 Aug 2010 22:05:12 +0000 (+0000) Subject: erlang: Don't print a warning for application-defined exceptions X-Git-Tag: 0.5.0~138 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=c0e4b5b246a90f0d098955532a8d913bdb6c0083;p=common%2Fthrift.git erlang: Don't print a warning for application-defined exceptions Application-defined exceptions are a normal occurrence as far as the Thrift infrastructure is concerned, so we should not print a warning. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990967 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/erl/src/thrift_processor.erl b/lib/erl/src/thrift_processor.erl index e26fb330..913e59b8 100644 --- a/lib/erl/src/thrift_processor.erl +++ b/lib/erl/src/thrift_processor.erl @@ -87,7 +87,7 @@ handle_function_catch(State = #thrift_processor{service = Service}, ok; {throw, Exception} when is_tuple(Exception), size(Exception) > 0 -> - error_logger:warning_msg("~p threw exception: ~p~n", [Function, Exception]), + %error_logger:warning_msg("~p threw exception: ~p~n", [Function, Exception]), handle_exception(State, Function, Exception), ok; % we still want to accept more requests from this client