[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
diff --git a/tutorial/erl/server.erl b/tutorial/erl/server.erl
index ab2b040..44f33ad 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 @@
_Else ->
throw(#invalidOperation{what=Op, why="Invalid operation"})
-
end.
getStruct(Key) ->
@@ -55,11 +53,7 @@
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,