aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/examples/code/server_cb.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2014-05-24 07:39:31 +0200
committerAnders Svensson <[email protected]>2014-05-26 13:52:05 +0200
commit6ff5384c118a3382823a99ccbb5b82d68c7a8e74 (patch)
treebc285e456fa622b01828e02f89c32dd06ab8bfd0 /lib/diameter/examples/code/server_cb.erl
parentdf19c2724e985daed4ee56abeedca779d20bd194 (diff)
downloadotp-6ff5384c118a3382823a99ccbb5b82d68c7a8e74.tar.gz
otp-6ff5384c118a3382823a99ccbb5b82d68c7a8e74.tar.bz2
otp-6ff5384c118a3382823a99ccbb5b82d68c7a8e74.zip
Make example code quiet
The output could make it impossible to use the shell. Counters returned diameter:service_info/2 can be used to check for expected happenings.
Diffstat (limited to 'lib/diameter/examples/code/server_cb.erl')
-rw-r--r--lib/diameter/examples/code/server_cb.erl8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/diameter/examples/code/server_cb.erl b/lib/diameter/examples/code/server_cb.erl
index 0f6eb32ed6..68901099e3 100644
--- a/lib/diameter/examples/code/server_cb.erl
+++ b/lib/diameter/examples/code/server_cb.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2010-2012. All Rights Reserved.
+%% Copyright Ericsson AB 2010-2014. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -38,12 +38,10 @@
-define(UNEXPECTED, erlang:error({unexpected, ?MODULE, ?LINE})).
-peer_up(_SvcName, {PeerRef, _}, State) ->
- io:format("up: ~p~n", [PeerRef]),
+peer_up(_SvcName, _Peer, State) ->
State.
-peer_down(_SvcName, {PeerRef, _}, State) ->
- io:format("down: ~p~n", [PeerRef]),
+peer_down(_SvcName, _Peer, State) ->
State.
pick_peer(_, _, _SvcName, _State) ->