From 00b79d1eed37ebbaa10c4faf8363bba173652b76 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Sun, 11 Oct 2015 21:46:14 +0200 Subject: [PATCH] suppress any output --- Snmp2Mysql/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Snmp2Mysql/Program.cs b/Snmp2Mysql/Program.cs index 61670fa..3aa356f 100644 --- a/Snmp2Mysql/Program.cs +++ b/Snmp2Mysql/Program.cs @@ -40,12 +40,12 @@ namespace Snmp2Mysql SnmpGetterResultProvider res = snmpGetter.Exec(); foreach (SnmpGetterResult r in res) { - Console.WriteLine("{0} {1} {2} {3}: {4}", dt.Description, r.Index, r.Oid, r.Type, r.Value); + // Console.WriteLine("{0} {1} {2} {3}: {4}", dt.Description, r.Index, r.Oid, r.Type, r.Value); dc.add((int)r.Index, r.Value); } } - catch (SnmpGetterException e) { - Console.WriteLine ("{0}, no result: {1}", dt.Description, e.Message); + catch (SnmpGetterException) { + // Console.WriteLine ("{0}, no result: {1}", dt.Description, e.Message); } } }