[thrift] improved error logging and handling for Erlang bindings
authorChristopher Piro <cpiro@apache.org>
Wed, 1 Aug 2007 22:27:37 +0000 (22:27 +0000)
committerChristopher Piro <cpiro@apache.org>
Wed, 1 Aug 2007 22:27:37 +0000 (22:27 +0000)
commit5b3a8f7a8b1f428ef103f5e9a9de13bcae1618c4
tree9ca57de640c225b99c81c2ac0695bbe12d803c82
parent99e2c07815c927f319c19e01f9a0d3a2f34b807c
[thrift] improved error logging and handling for Erlang bindings

Summary:
 * custom, extensible error logger -- show only relevant stuff
 * clean up of errors in developer-supplied handler module
   now gives sane error messages and doesn't crash whole server
   (introduces tApplicationException_HANDLER_ERROR)
 * more precise catch in tErlProcessor (exits gracefully only if
   transport closes)

Reviewed By: iproctor

Test Plan: tutorial works

Revert Plan: ok

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665186 13f79535-47bb-0310-9956-ffa450edef68
18 files changed:
compiler/cpp/src/generate/t_erl_generator.cc
lib/erl/lib/thrift/TODO
lib/erl/lib/thrift/include/tApplicationException.hrl
lib/erl/lib/thrift/include/thrift.hrl
lib/erl/lib/thrift/include/thrift_logger.hrl [new file with mode: 0644]
lib/erl/lib/thrift/server.sh
lib/erl/lib/thrift/src/oop.erl
lib/erl/lib/thrift/src/server/tErlServer.erl
lib/erl/lib/thrift/src/server/tSimpleServer.erl
lib/erl/lib/thrift/src/tErlProcessor.erl
lib/erl/lib/thrift/src/thrift.erl [new file with mode: 0644]
lib/erl/lib/thrift/src/thrift_logger.erl [new file with mode: 0644]
lib/erl/lib/thrift/src/thrift_oop_server.erl
lib/erl/lib/thrift/src/thrift_utils.erl
lib/erl/lib/thrift/src/transport/tErlAcceptor.erl
lib/erl/lib/thrift/src/transport/tSocket.erl
lib/erl/lib/thrift/src/transport/tTransport.erl
tutorial/erl/server.erl