trying to stop team city from sending exeptioneer reports.

This commit is contained in:
kay.one 2011-10-16 20:02:20 -07:00
parent 287cb03517
commit 97ed59920b
2 changed files with 5 additions and 5 deletions

View File

@ -81,9 +81,9 @@ namespace NzbDrone.Core.Test.Framework
private static void Excpected(LogLevel level, int count) private static void Excpected(LogLevel level, int count)
{ {
var _inconclusiveLogs = _logs.Where(l => _inconclusive.Any(c => c.IsAssignableFrom(l.Exception.GetType()))).ToList(); var inconclusiveLogs = _logs.Where(l => _inconclusive.Any(c => c == l.Exception.GetType())).ToList();
var levelLogs = _logs.Except(_inconclusiveLogs).Where(l => l.Level == level).ToList(); var levelLogs = _logs.Except(inconclusiveLogs).Where(l => l.Level == level).ToList();
if (levelLogs.Count != count) if (levelLogs.Count != count)
{ {
@ -98,9 +98,9 @@ namespace NzbDrone.Core.Test.Framework
Assert.Fail(message); Assert.Fail(message);
} }
if (_inconclusiveLogs.Count != 0) if (inconclusiveLogs.Count != 0)
{ {
Assert.Inconclusive(GetLogsString(_inconclusiveLogs)); Assert.Inconclusive(GetLogsString(inconclusiveLogs));
} }
levelLogs.ForEach(c => _logs.Remove(c)); levelLogs.ForEach(c => _logs.Remove(c));

View File

@ -14,7 +14,7 @@ namespace NzbDrone.Core.Instrumentation
{ {
if (!Debugger.IsAttached) if (!Debugger.IsAttached)
{ {
Logger.Trace("Sending Exception to Exceptioneer"); Logger.Trace("Sending Exception to Exceptioneer. {0}", Process.GetCurrentProcess().ProcessName);
new Client new Client
{ {