aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-03-08 16:24:17 +0100
committerMicael Karlberg <[email protected]>2011-03-08 16:24:17 +0100
commitf609a092a1741d60ff54fd9c29bd5785985eb48a (patch)
tree2c932f08e750cda332bd4d20230913ab9bdcb4a3 /lib/snmp/src
parent20fe9e81991f1c18eb7d22371e2ad6befcc87fe6 (diff)
downloadotp-f609a092a1741d60ff54fd9c29bd5785985eb48a.tar.gz
otp-f609a092a1741d60ff54fd9c29bd5785985eb48a.tar.bz2
otp-f609a092a1741d60ff54fd9c29bd5785985eb48a.zip
Added some target debugging.
Diffstat (limited to 'lib/snmp/src')
-rw-r--r--lib/snmp/src/agent/snmp_notification_mib.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/snmp/src/agent/snmp_notification_mib.erl b/lib/snmp/src/agent/snmp_notification_mib.erl
index 1cd69b430f..3da5766b44 100644
--- a/lib/snmp/src/agent/snmp_notification_mib.erl
+++ b/lib/snmp/src/agent/snmp_notification_mib.erl
@@ -273,9 +273,12 @@ find_targets(Key, TargAddrs, Db, Res) ->
get_targets([{TagList, Addr, TargetName, Params, Timeout, Retry}|T],
Tag, Type, Name) ->
case snmp_misc:is_tag_member(Tag, TagList) of
- true -> [{Name, {Addr, TargetName, Params, type(Type, Timeout, Retry)}}|
- get_targets(T, Tag, Type, Name)];
+ true ->
+ ?vtrace("tag ~w *is* member", [Tag]),
+ [{Name, {Addr, TargetName, Params, type(Type, Timeout, Retry)}}|
+ get_targets(T, Tag, Type, Name)];
false ->
+ ?vtrace("tag ~w is *not* member", [Tag]),
get_targets(T, Tag, Type, Name)
end;
get_targets([], _Tag, _Type, _Name) ->