reduce dlna logging
This commit is contained in:
parent
5372c0bf23
commit
0fd7e89039
|
@ -9,6 +9,7 @@ using System.Linq;
|
||||||
using MediaBrowser.Common.IO;
|
using MediaBrowser.Common.IO;
|
||||||
using MediaBrowser.Controller.IO;
|
using MediaBrowser.Controller.IO;
|
||||||
using MediaBrowser.Model.IO;
|
using MediaBrowser.Model.IO;
|
||||||
|
using MediaBrowser.Model.Logging;
|
||||||
|
|
||||||
namespace Emby.Server.Implementations.Library
|
namespace Emby.Server.Implementations.Library
|
||||||
{
|
{
|
||||||
|
@ -19,6 +20,7 @@ namespace Emby.Server.Implementations.Library
|
||||||
{
|
{
|
||||||
private readonly IFileSystem _fileSystem;
|
private readonly IFileSystem _fileSystem;
|
||||||
private readonly ILibraryManager _libraryManager;
|
private readonly ILibraryManager _libraryManager;
|
||||||
|
private readonly ILogger _logger;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Any folder named in this list will be ignored - can be added to at runtime for extensibility
|
/// Any folder named in this list will be ignored - can be added to at runtime for extensibility
|
||||||
|
@ -40,10 +42,11 @@ namespace Emby.Server.Implementations.Library
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public CoreResolutionIgnoreRule(IFileSystem fileSystem, ILibraryManager libraryManager)
|
public CoreResolutionIgnoreRule(IFileSystem fileSystem, ILibraryManager libraryManager, ILogger logger)
|
||||||
{
|
{
|
||||||
_fileSystem = fileSystem;
|
_fileSystem = fileSystem;
|
||||||
_libraryManager = libraryManager;
|
_libraryManager = libraryManager;
|
||||||
|
_logger = logger;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -54,6 +57,12 @@ namespace Emby.Server.Implementations.Library
|
||||||
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
|
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
|
||||||
public bool ShouldIgnore(FileSystemMetadata fileInfo, BaseItem parent)
|
public bool ShouldIgnore(FileSystemMetadata fileInfo, BaseItem parent)
|
||||||
{
|
{
|
||||||
|
// Don't ignore top level folders
|
||||||
|
if (fileInfo.IsDirectory && parent is AggregateFolder)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var filename = fileInfo.Name;
|
var filename = fileInfo.Name;
|
||||||
var isHidden = fileInfo.IsHidden;
|
var isHidden = fileInfo.IsHidden;
|
||||||
var path = fileInfo.FullName;
|
var path = fileInfo.FullName;
|
||||||
|
|
|
@ -359,7 +359,7 @@ namespace Rssdp.Infrastructure
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WriteTrace(String.Format("Sent search response to " + endPoint.ToString()), device);
|
//WriteTrace(String.Format("Sent search response to " + endPoint.ToString()), device);
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool IsDuplicateSearchRequest(string searchTarget, IpEndPointInfo endPoint)
|
private bool IsDuplicateSearchRequest(string searchTarget, IpEndPointInfo endPoint)
|
||||||
|
@ -485,7 +485,7 @@ namespace Rssdp.Infrastructure
|
||||||
|
|
||||||
_CommsServer.SendMulticastMessage(message);
|
_CommsServer.SendMulticastMessage(message);
|
||||||
|
|
||||||
WriteTrace(String.Format("Sent alive notification"), device);
|
//WriteTrace(String.Format("Sent alive notification"), device);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in New Issue
Block a user