Skip to content
Browse files

Operator-prefix reformat

  • Loading branch information...
1 parent f5a0281 commit 17ac5ba808f8c961d83d3ae3f9eeabcd06647626 @jhs jhs committed Dec 9, 2010
Showing with 14 additions and 12 deletions.
  1. +14 −12 src/somdune_net.erl
View
26 src/somdune_net.erl
@@ -73,18 +73,20 @@ run_proxy(Port, BalancerModule, Options) ->
{ok, SslSock}
end
end
- end,
-
- case NetModule:listen(Port, [binary, {active, false}, {reuseaddr, true}] ++ Options) of
- {ok, ListenSocket} ->
- tcpAcceptor(ListenSocket, BalancerModule, Accept, Restart);
- {error, eaddrinuse} ->
- log_error("Port is already in use: ~p", [Port]),
- ok;
- Else ->
- log_error("What happened? ~p", [Else]),
- exit(error)
- end.
+ end
+
+ , case NetModule:listen(Port, [binary, {active, false}, {reuseaddr, true}] ++ Options)
+ of {ok, ListenSocket}
+ -> log_info("Successful listen (~p) on ~p", [NetModule, Port])
+ , tcpAcceptor(ListenSocket, BalancerModule, Accept, Restart)
+ ; {error, eaddrinuse}
+ -> log_error("Port is already in use: ~p", [Port])
+ , ok
+ ; Else
+ -> log_error("What happened? ~p", [Else])
+ , exit(error)
+ end
+ .
tcpAcceptor(ListeningSocket, BalancerModule, Accept, Restart) ->

0 comments on commit 17ac5ba

Please sign in to comment.
Something went wrong with that request. Please try again.