From c0e4b5b246a90f0d098955532a8d913bdb6c0083 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Mon, 30 Aug 2010 22:05:12 +0000 Subject: [PATCH] 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 --- lib/erl/src/thrift_processor.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.17.1