From 1af1868457221f257bc5c4dd83028dd5628e67bd Mon Sep 17 00:00:00 2001 From: David Reiss Date: Wed, 11 Jun 2008 01:01:36 +0000 Subject: [PATCH] replacing an io format with error_logger call git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666446 13f79535-47bb-0310-9956-ffa450edef68 --- lib/alterl/src/thrift_client.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/alterl/src/thrift_client.erl b/lib/alterl/src/thrift_client.erl index 52c65d25..af7aea9f 100644 --- a/lib/alterl/src/thrift_client.erl +++ b/lib/alterl/src/thrift_client.erl @@ -221,13 +221,12 @@ handle_reply(State = #state{protocol = Proto, ok = thrift_protocol:read(Proto, message_end), Result. - handle_application_exception(State = #state{protocol = Proto}) -> {ok, Exception} = thrift_protocol:read(Proto, ?TApplicationException_Structure), ok = thrift_protocol:read(Proto, message_end), XRecord = list_to_tuple( ['TApplicationException' | tuple_to_list(Exception)]), - io:format("X: ~p~n", [XRecord]), + error_logger:error_msg("X: ~p~n", [XRecord]), true = is_record(XRecord, 'TApplicationException'), {exception, XRecord}. -- 2.17.1