Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
7665-snmp-test-More-info-when-error-detected.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 7665-snmp-test-More-info-when-error-detected.patch of Package erlang
From c70c710b99982206e8fa3d325c8644bf6c9bda76 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Wed, 19 Jan 2022 14:02:09 +0100 Subject: [PATCH 05/12] [snmp|test] More info when error detected --- lib/snmp/test/snmp_test_mgr_misc.erl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/snmp/test/snmp_test_mgr_misc.erl b/lib/snmp/test/snmp_test_mgr_misc.erl index 6f15adaed1..22b0d32d7d 100644 --- a/lib/snmp/test/snmp_test_mgr_misc.erl +++ b/lib/snmp/test/snmp_test_mgr_misc.erl @@ -321,14 +321,15 @@ handle_v3_message(Mgr, UdpId, Ip, UdpPort, AgentIp, catch throw:{error, Reason, B}:_ -> - udp_send(UdpId, AgentIp, UdpPort, B), + {_, Pid} = Mgr, ?EPRINT("Decoding (v3) error - Auto-sending Report:" - "~n Reason: ~p" - "~n Port: ~p" - "~n Ip: ~p", - [Reason, UdpPort, Ip]), + "~n Reason: ~p" + "~n Port: ~p" + "~n Ip: ~p" + "~n (mgr) Pid: ~p", + [Pid, Reason, UdpPort, Ip]), + udp_send(UdpId, AgentIp, UdpPort, B), %% Can we be sure that this error is not expected? - {_, Pid} = Mgr, Pid ! {error, Reason}, []; -- 2.34.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor