Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cdhunt committed Sep 29, 2014
1 parent c0d1736 commit 8a58de7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions newrelic_perfmon_plugin/Agent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,27 +90,22 @@ public override void PollCycle()
string metricName = string.Format("{0}{2}/{1}", categoryName, counterName, instanceName);

logger.Debug("{0}/{1}: {2} {3}", Name, metricName, value, unitValue);
//Console.WriteLine("{0}/{1}: {2} {3}", Name, metricName, value, unitValue);

ReportMetric(metricName, unitValue, value);
}
catch (Exception e)
{
logger.Error("Exception occurred in processing results. {0}\r\n{1}", e.Message, e.StackTrace);
//Console.WriteLine(string.Format("Exception occurred in processing results. {0}\r\n{1}", e.Message, e.StackTrace));

}
}
}
catch (ManagementException e)
{
logger.Error("Exception occurred in polling. {0}\r\n{1}", e.Message, queryString);
//Console.WriteLine(string.Format("Exception occurred in polling. {0}\r\n{1}", e.Message, queryString));
}
catch (Exception e)
{
logger.Error("Unable to connect to \"{0}\". {1}", Name, e.Message);
//Console.WriteLine(string.Format("Unable to connect to \"{0}\". {1}", Name, e.Message));
}
}

Expand Down

0 comments on commit 8a58de7

Please sign in to comment.