From 97ed59920b04f2a3bb48c712507043ce49c9bdb5 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 16 Oct 2011 20:02:20 -0700 Subject: [PATCH] trying to stop team city from sending exeptioneer reports. --- NzbDrone.Core.Test/Framework/ExceptionVerification.cs | 8 ++++---- NzbDrone.Core/Instrumentation/ExceptioneerTarget.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NzbDrone.Core.Test/Framework/ExceptionVerification.cs b/NzbDrone.Core.Test/Framework/ExceptionVerification.cs index 52b9bf6ec..b0b37d03c 100644 --- a/NzbDrone.Core.Test/Framework/ExceptionVerification.cs +++ b/NzbDrone.Core.Test/Framework/ExceptionVerification.cs @@ -81,9 +81,9 @@ namespace NzbDrone.Core.Test.Framework 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) { @@ -98,9 +98,9 @@ namespace NzbDrone.Core.Test.Framework 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)); diff --git a/NzbDrone.Core/Instrumentation/ExceptioneerTarget.cs b/NzbDrone.Core/Instrumentation/ExceptioneerTarget.cs index 2cd8caf76..8dbd6d29d 100644 --- a/NzbDrone.Core/Instrumentation/ExceptioneerTarget.cs +++ b/NzbDrone.Core/Instrumentation/ExceptioneerTarget.cs @@ -14,7 +14,7 @@ namespace NzbDrone.Core.Instrumentation { if (!Debugger.IsAttached) { - Logger.Trace("Sending Exception to Exceptioneer"); + Logger.Trace("Sending Exception to Exceptioneer. {0}", Process.GetCurrentProcess().ProcessName); new Client {