mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
removed some extra logging.
This commit is contained in:
parent
256520c551
commit
748d00c5af
@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using NzbDrone.Common.Messaging;
|
||||
@ -61,13 +60,10 @@ private void AutoRegisterImplementations(Type contractType)
|
||||
if (implementations.Count == 1)
|
||||
{
|
||||
var impl = implementations.Single();
|
||||
|
||||
Trace.WriteLine(string.Format("Registering {0} -> {1}", contractType.FullName, impl.Name));
|
||||
Container.RegisterSingleton(contractType, impl);
|
||||
}
|
||||
else
|
||||
{
|
||||
Trace.WriteLine(string.Format("Registering {0} -> {1}", contractType.FullName, implementations.Count));
|
||||
Container.RegisterAllAsSingleton(contractType, implementations);
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ public abstract class IntegrationTest
|
||||
protected ReleaseClient Releases;
|
||||
protected IndexerClient Indexers;
|
||||
|
||||
static IntegrationTest()
|
||||
private static void ResetLogger()
|
||||
{
|
||||
LogManager.Configuration = new LoggingConfiguration();
|
||||
var consoleTarget = new ConsoleTarget { Layout = "${time} - ${logger} - ${message} ${exception}" };
|
||||
@ -53,6 +53,8 @@ static IntegrationTest()
|
||||
[SetUp]
|
||||
public void SmokeTestSetup()
|
||||
{
|
||||
ResetLogger();
|
||||
|
||||
Container = MainAppContainerBuilder.BuildContainer(new string[0]);
|
||||
Container.Register(typeof(IAppFolderInfo), new IntegrationTestFolderInfo());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user