Reduce number of log messages for "continuing" OIDs
@@ -176,6 +176,8 @@ def multiwalk(ip, community, oids, port=161, timeout=2, fetcher=multigetnext):
requested_oids = [ObjectIdentifier.from_string(oid) for oid in oids]
grouped_oids = group_varbinds(varbinds, requested_oids)
unfinished_oids = get_unfinished_walk_oids(grouped_oids)
+
+ if LOG.isEnabledFor(logging.DEBUG) and len(oids) > 1:
LOG.debug('%d of %d OIDs need to be continued',
len(unfinished_oids),
len(oids))
@@ -204,6 +206,7 @@ def multiwalk(ip, community, oids, port=161, timeout=2, fetcher=multigetnext):
next_fetches,
user_roots=requested_oids)
unfinished_oids = get_unfinished_walk_oids(grouped_oids)
+ if LOG.isEnabledFor(logging.DEBUG) and len(oids) > 1:
LOG.debug('%d of %d OIDs need to be continued',
len(unfinished_oids),
len(oids))
