From 8ca66b8805921f2ec60f088177f0e9596f08dc57 Mon Sep 17 00:00:00 2001 From: Christopher Piro Date: Tue, 15 Jan 2008 12:04:09 +0000 Subject: [PATCH] [thrift] update thrift_logger bits in Erlang server tutorial Summary: thrift_logger changed a while back but the tutorial didn't keep up. fixed. Reviewed By: eletuchy Test Plan: compiles now :p Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665425 13f79535-47bb-0310-9956-ffa450edef68 --- tutorial/erl/server.erl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tutorial/erl/server.erl b/tutorial/erl/server.erl index ab2b0404..44f33ad5 100644 --- a/tutorial/erl/server.erl +++ b/tutorial/erl/server.erl @@ -1,7 +1,6 @@ -module(server). -include("thrift.hrl"). --include("thrift_logger.hrl"). -include("transport/tSocket.hrl"). -include("protocol/tBinaryProtocol.hrl"). @@ -38,7 +37,6 @@ calculate(Logid, Work) -> _Else -> throw(#invalidOperation{what=Op, why="Invalid operation"}) - end. getStruct(Key) -> @@ -55,11 +53,7 @@ start() -> start(9090). start(Port) -> - thrift_logger:install([#thrift_logger_state{ - force_one_line = false, %% should we collapse all errors to one line? - term_width = 110, %% if so, crop output at this width - omit = [oop_new, req_processed] %% don't show these kinds of infos - }]), + thrift:start(), Handler = ?MODULE, Processor = calculator_thrift, -- 2.17.1