pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/34198 )


Change subject: gsup: Log connect failures
......................................................................

gsup: Log connect failures

Change-Id: I273d37aa75cfacbc7c3302d035c2391d9bdd9b2e
---
M src/gsup_client.erl
A src/rebar.lock
2 files changed, 13 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/erlang/osmo_dia2gsup 
refs/changes/98/34198/1

diff --git a/src/gsup_client.erl b/src/gsup_client.erl
index 6a583e0..07b48d2 100644
--- a/src/gsup_client.erl
+++ b/src/gsup_client.erl
@@ -83,9 +83,10 @@
                        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.


diff --git a/src/rebar.lock b/src/rebar.lock
new file mode 100644
index 0000000..57afcca
--- /dev/null
+++ b/src/rebar.lock
@@ -0,0 +1 @@
+[].

--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/34198
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: erlang/osmo_dia2gsup
Gerrit-Branch: master
Gerrit-Change-Id: I273d37aa75cfacbc7c3302d035c2391d9bdd9b2e
Gerrit-Change-Number: 34198
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to