From: <buc...@us...> - 2011-04-04 10:47:30
|
Revision: 226 http://devmon.svn.sourceforge.net/devmon/?rev=226&view=rev Author: buchanmilne Date: 2011-04-04 10:47:24 +0000 (Mon, 04 Apr 2011) Log Message: ----------- Suppress SNMP warnings if not in debug Modified Paths: -------------- trunk/modules/dm_snmp.pm Modified: trunk/modules/dm_snmp.pm =================================================================== --- trunk/modules/dm_snmp.pm 2011-04-04 10:45:05 UTC (rev 225) +++ trunk/modules/dm_snmp.pm 2011-04-04 10:47:24 UTC (rev 226) @@ -39,7 +39,7 @@ my $max_pdu_len = 16384; # default is 8000 # Set some of our global SNMP variables $BER::pretty_print_timeticks = 0; - $SNMP_Session::suppress_warnings = 0; + $SNMP_Session::suppress_warnings = $g{'debug'} ? 0 : 1; # Fiddle with some of our storable settings to correct byte order... $Storable::interwork_56_64bit = 1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |