From 748d00c5affcdf2131f77efc14644fb021fa4311 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Mon, 5 Aug 2013 15:24:54 -0700 Subject: [PATCH] removed some extra logging. --- NzbDrone.Common/Composition/ContainerBuilderBase.cs | 4 ---- NzbDrone.Integration.Test/IntegrationTest.cs | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/NzbDrone.Common/Composition/ContainerBuilderBase.cs b/NzbDrone.Common/Composition/ContainerBuilderBase.cs index 86cf8c750..4348d7616 100644 --- a/NzbDrone.Common/Composition/ContainerBuilderBase.cs +++ b/NzbDrone.Common/Composition/ContainerBuilderBase.cs @@ -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 @@ namespace NzbDrone.Common.Composition 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); } } diff --git a/NzbDrone.Integration.Test/IntegrationTest.cs b/NzbDrone.Integration.Test/IntegrationTest.cs index a972b035e..a86146166 100644 --- a/NzbDrone.Integration.Test/IntegrationTest.cs +++ b/NzbDrone.Integration.Test/IntegrationTest.cs @@ -39,7 +39,7 @@ namespace NzbDrone.Integration.Test 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 @@ namespace NzbDrone.Integration.Test [SetUp] public void SmokeTestSetup() { + ResetLogger(); + Container = MainAppContainerBuilder.BuildContainer(new string[0]); Container.Register(typeof(IAppFolderInfo), new IntegrationTestFolderInfo());