add debug logging messages

This commit is contained in:
Luke Pulverenti
2013-05-26 21:24:56 -04:00
parent cbd3de416c
commit afbd4e3b48
2 changed files with 14 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Resolvers;
using MediaBrowser.Model.Logging;
using System;
using System.Collections.Generic;
using System.IO;
@@ -13,6 +14,8 @@ namespace MediaBrowser.Server.Implementations.Library
/// </summary>
public class CoreResolutionIgnoreRule : IResolverIgnoreRule
{
private readonly ILogger _logger;
/// <summary>
/// Any folder named in this list will be ignored - can be added to at runtime for extensibility
/// </summary>
@@ -27,6 +30,11 @@ namespace MediaBrowser.Server.Implementations.Library
"extrafanart"
};
public CoreResolutionIgnoreRule(ILogger logger)
{
_logger = logger;
}
/// <summary>
/// Shoulds the ignore.
/// </summary>
@@ -51,6 +59,8 @@ namespace MediaBrowser.Server.Implementations.Library
{
return false;
}
_logger.Error("Operating system reports drive is not ready: {0}", args.Path);
}
return true;