Browse Source

Add file lock logging message

Luke Pulverenti 12 years ago
parent
commit
a0dfbdfd70
1 changed files with 2 additions and 1 deletions
  1. 2 1
      MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs

+ 2 - 1
MediaBrowser.Server.Implementations/IO/DirectoryWatchers.cs

@@ -23,7 +23,7 @@ namespace MediaBrowser.Server.Implementations.IO
         /// <summary>
         /// <summary>
         /// The file system watchers
         /// The file system watchers
         /// </summary>
         /// </summary>
-        private ConcurrentDictionary<string, FileSystemWatcher> _fileSystemWatchers = new ConcurrentDictionary<string,FileSystemWatcher>(StringComparer.OrdinalIgnoreCase);
+        private readonly ConcurrentDictionary<string, FileSystemWatcher> _fileSystemWatchers = new ConcurrentDictionary<string,FileSystemWatcher>(StringComparer.OrdinalIgnoreCase);
         /// <summary>
         /// <summary>
         /// The update timer
         /// The update timer
         /// </summary>
         /// </summary>
@@ -424,6 +424,7 @@ namespace MediaBrowser.Server.Implementations.IO
                 //still being written to
                 //still being written to
                 //or being processed by another thread
                 //or being processed by another thread
                 //or does not exist (has already been processed)
                 //or does not exist (has already been processed)
+                Logger.Debug("{0} is locked.", path);
                 return true;
                 return true;
             }
             }
         }
         }