mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user