diff options
author | Christopher Piro <cpiro@apache.org> | 2008-01-15 12:04:09 +0000 |
---|---|---|
committer | Christopher Piro <cpiro@apache.org> | 2008-01-15 12:04:09 +0000 |
commit | 8ca66b8805921f2ec60f088177f0e9596f08dc57 (patch) | |
tree | dce78c5b6354757e4fe21d987e3e72825e57fa4c /tutorial | |
parent | 737ce021d1eebc100df83ee04489cb85e4a5f56c (diff) | |
download | thrift-8ca66b8805921f2ec60f088177f0e9596f08dc57.tar.gz |
[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
Diffstat (limited to 'tutorial')
-rw-r--r-- | tutorial/erl/server.erl | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tutorial/erl/server.erl b/tutorial/erl/server.erl index ab2b04046..44f33ad52 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, |