fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37460?usp=email )
Change subject: sctp_proxy: handle_pdu/2: print stacktrace on exception
......................................................................
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
https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37460?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: I7fef18d4462af4b629318922e59cb5aa161fed93
Gerrit-Change-Number: 37460
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange