From: Christopher Piro Date: Wed, 19 Dec 2007 00:00:39 +0000 (+0000) Subject: [thrift] squelch crash reports in Erlang R12B-0 X-Git-Tag: 0.2.0~1072 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=a89cd7b03e1a1071094bacdfbf74cff3739b2911;p=common%2Fthrift.git [thrift] squelch crash reports in Erlang R12B-0 Summary: there's a new format for errors in R12B-0, so don't echo a crash report if it matches the new one Reviewed By: eletuchy Test Plan: completely unnecessary Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665400 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/erl/src/thrift_logger.erl b/lib/erl/src/thrift_logger.erl index c8fb49a0..c6d7074f 100644 --- a/lib/erl/src/thrift_logger.erl +++ b/lib/erl/src/thrift_logger.erl @@ -214,10 +214,19 @@ config(Item) -> print_crash_report(Report) -> case Report of + %% for R12B0 + [[_, _, {error_info, {exit, {thrift_exception, _}, _}} | _] | _] -> + ok; + [[_, _, {error_info, {exit, {timeout, _}, _}} | _] | _] -> + ok; + + %% for R11B5 [[_,_,{error_info, {thrift_exception, _}}|_] | _] -> ok; [[_,_,{error_info, {timeout, _}}|_] | _] -> ok; + + %% else _ -> io:format("~~~~ crash report: ~w~n", [Report]) end.