mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 04:59:35 -07:00
trying to stop team city from sending exeptioneer reports.
This commit is contained in:
parent
287cb03517
commit
97ed59920b
2 changed files with 5 additions and 5 deletions
|
@ -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));
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue