aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-26 21:24:56 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-26 21:24:56 -0400
commitafbd4e3b48447a004853efb32e10f871f6ddb422 (patch)
tree39905f2ae799c3a5793141b86df26df72c672855 /MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
parentcbd3de416c1782d65c095459e9860fda6a0043bf (diff)
add debug logging messages
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
index 4551fe29a..6112862af 100644
--- a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
+++ b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
@@ -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;