From a0dfbdfd70fe85fca64b341b6fe30708e9a9ebe9 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 8 May 2013 14:12:55 -0400 Subject: [PATCH] Add file lock logging message --- MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs b/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs index beeb1c181..b9b2b560b 100644 --- a/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs +++ b/MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs @@ -23,7 +23,7 @@ namespace MediaBrowser.Server.Implementations.IO /// /// The file system watchers /// - private ConcurrentDictionary _fileSystemWatchers = new ConcurrentDictionary(StringComparer.OrdinalIgnoreCase); + private readonly ConcurrentDictionary _fileSystemWatchers = new ConcurrentDictionary(StringComparer.OrdinalIgnoreCase); /// /// The update timer /// @@ -424,6 +424,7 @@ namespace MediaBrowser.Server.Implementations.IO //still being written to //or being processed by another thread //or does not exist (has already been processed) + Logger.Debug("{0} is locked.", path); return true; } }