From 21816ff63e90e0b77c6be73d96dba886c6d542c6 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 8 Dec 2016 00:56:46 -0500 Subject: [PATCH] trim excess logging --- .../MediaBrowser.LocalMetadata.csproj | 1 - .../Providers/PersonXmlProvider.cs | 38 ------------------- RSSDP/SsdpDevicePublisherBase.cs | 4 +- 3 files changed, 3 insertions(+), 40 deletions(-) delete mode 100644 MediaBrowser.LocalMetadata/Providers/PersonXmlProvider.cs diff --git a/MediaBrowser.LocalMetadata/MediaBrowser.LocalMetadata.csproj b/MediaBrowser.LocalMetadata/MediaBrowser.LocalMetadata.csproj index 8193e6afd7..f7b7fa5f26 100644 --- a/MediaBrowser.LocalMetadata/MediaBrowser.LocalMetadata.csproj +++ b/MediaBrowser.LocalMetadata/MediaBrowser.LocalMetadata.csproj @@ -59,7 +59,6 @@ - diff --git a/MediaBrowser.LocalMetadata/Providers/PersonXmlProvider.cs b/MediaBrowser.LocalMetadata/Providers/PersonXmlProvider.cs deleted file mode 100644 index f430df2971..0000000000 --- a/MediaBrowser.LocalMetadata/Providers/PersonXmlProvider.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System.IO; -using System.Threading; -using MediaBrowser.Common.IO; -using MediaBrowser.Model.IO; -using MediaBrowser.Controller.Entities; -using MediaBrowser.Controller.IO; -using MediaBrowser.Controller.Providers; -using MediaBrowser.LocalMetadata.Parsers; -using MediaBrowser.Model.Logging; -using MediaBrowser.Model.Xml; - -namespace MediaBrowser.LocalMetadata.Providers -{ - //public class PersonXmlProvider : BaseXmlProvider - //{ - // private readonly ILogger _logger; - // private readonly IProviderManager _providerManager; - // protected IXmlReaderSettingsFactory XmlReaderSettingsFactory { get; private set; } - - // public PersonXmlProvider(IFileSystem fileSystem, ILogger logger, IProviderManager providerManager, IXmlReaderSettingsFactory xmlReaderSettingsFactory) - // : base(fileSystem) - // { - // _logger = logger; - // _providerManager = providerManager; - // XmlReaderSettingsFactory = xmlReaderSettingsFactory; - // } - - // protected override void Fetch(MetadataResult result, string path, CancellationToken cancellationToken) - // { - // new BaseItemXmlParser(_logger, _providerManager, XmlReaderSettingsFactory, FileSystem).Fetch(result, path, cancellationToken); - // } - - // protected override FileSystemMetadata GetXmlFile(ItemInfo info, IDirectoryService directoryService) - // { - // return directoryService.GetFile(Path.Combine(info.Path, "person.xml")); - // } - //} -} diff --git a/RSSDP/SsdpDevicePublisherBase.cs b/RSSDP/SsdpDevicePublisherBase.cs index ee33359574..260c008960 100644 --- a/RSSDP/SsdpDevicePublisherBase.cs +++ b/RSSDP/SsdpDevicePublisherBase.cs @@ -249,7 +249,7 @@ namespace Rssdp.Infrastructure if (IsDuplicateSearchRequest(searchTarget, remoteEndPoint)) { - WriteTrace("Search Request is Duplicate, ignoring."); + //WriteTrace("Search Request is Duplicate, ignoring."); return; } @@ -299,7 +299,9 @@ namespace Rssdp.Infrastructure } } else + { WriteTrace(String.Format("Sending 0 search responses.")); + } }); }