fixeria has uploaded this change for review.

View Change

sctp_proxy: handle_pdu/2: print stacktrace on exception

Change-Id: I7fef18d4462af4b629318922e59cb5aa161fed93
---
M src/sctp_proxy.erl
1 file changed, 11 insertions(+), 2 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-s1gw refs/changes/60/37460/1
diff --git a/src/sctp_proxy.erl b/src/sctp_proxy.erl
index 85b5c3d..ab147e6 100644
--- a/src/sctp_proxy.erl
+++ b/src/sctp_proxy.erl
@@ -204,8 +204,8 @@
try s1ap_proxy:handle_pdu(Data) of
NewData -> NewData
catch
- Exception:Reason ->
- ?LOG_ERROR("An exception occurred: ~p, ~p", [Exception, Reason]),
+ Exception:Reason:StackTrace ->
+ ?LOG_ERROR("An exception occurred: ~p, ~p, ~p", [Exception, Reason, StackTrace]),
Data %% proxy as-is
end.


To view, visit change 37460. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: I7fef18d4462af4b629318922e59cb5aa161fed93
Gerrit-Change-Number: 37460
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
Gerrit-MessageType: newchange