fixeria has submitted this change. (
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(-)
Approvals:
fixeria: Looks good to me, approved
Jenkins Builder: Verified
laforge: Looks good to me, but someone else must approve
pespin: Looks good to me, but someone else must approve
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-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged