Added logging

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4939 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2007-01-26 12:28:21 +00:00
parent 08809fbc7d
commit 30007cca42

View File

@@ -25,6 +25,8 @@ import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Hashtable;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.lucene.index.IndexFileNameFilter;
/**
@@ -35,6 +37,8 @@ import org.apache.lucene.index.IndexFileNameFilter;
*/
public class FSDirectory extends Directory {
private static Log s_logger = LogFactory.getLog(FSDirectory.class);
/** This cache of directories ensures that there is a unique Directory
* instance per path, so that synchronization on the Directory can be used to
* synchronize access between readers and writers.
@@ -159,6 +163,11 @@ public class FSDirectory extends Directory {
private void init(File path, boolean create) throws IOException {
directory = path;
if(s_logger.isDebugEnabled())
{
s_logger.debug("Alfresco FSDirectory used for "+path+" create = "+create);
}
if (LOCK_DIR == null) {
lockDir = directory;
}