gsup: Log connect failures

Change-Id: I273d37aa75cfacbc7c3302d035c2391d9bdd9b2e
This commit is contained in:
Pau Espin 2023-08-24 17:52:52 +02:00
parent ab4e541e01
commit fddad21ecf
2 changed files with 4 additions and 2 deletions

View File

@ -83,9 +83,10 @@ init([Address, Port, Options]) ->
true = ipa_proto:register_stream(Socket, ?IPAC_PROTO_EXT_GSUP, {process_id, self()}),
ipa_proto:unblock(Socket),
{ok, #gsupc_state{socket=Socket, ipa_pid=IpaPid}};
{error, econnrefused} ->
{error, Reason} ->
lager:error("Connectiing to GSUP HLR on IP ~s port ~p failed: ~p~n", [Address, Port, Reason]),
timer:sleep(5000),
{stop, connrefused}
{stop, Reason}
end.

1
src/rebar.lock Normal file
View File

@ -0,0 +1 @@
[].