Source

whoosh / src / whoosh / index.py

The branch 'logging' does not exist.
Diff from to

src/whoosh/index.py

 """
 
 from __future__ import division
-import os.path
-import sys
+import logging, os.path, sys
+
+
+log = logging.getLogger(__name__)
 
 
 _DEF_INDEX_NAME = "MAIN"
 
     if indexname is None:
         indexname = _DEF_INDEX_NAME
+    log.debug("Opening index %s in %s", indexname, dirname)
 
     from whoosh.filedb.filestore import FileStorage
     storage = FileStorage(dirname, readonly=readonly)