add leftover logging code from production server
This commit is contained in:
parent
45ac6bb3fd
commit
1c0829f7ba
|
@ -1,3 +1,5 @@
|
|||
import logging
|
||||
|
||||
from zope.interface import Interface
|
||||
from ZODB.POSException import ConflictError
|
||||
from five import grok
|
||||
|
@ -18,6 +20,9 @@ from document import IDocument
|
|||
from dossier import IDossier
|
||||
from question import IQuestion
|
||||
|
||||
log = logging.getLogger('Plone')
|
||||
|
||||
|
||||
def dateIndexer(obj):
|
||||
if obj.date is None:
|
||||
return None
|
||||
|
@ -175,6 +180,7 @@ def document_dynamic_searchable_text_indexer(obj):
|
|||
# if there is no path to text/plain, do nothing
|
||||
transforms = getToolByName(obj, 'portal_transforms')
|
||||
if not transforms._findPath(data.contentType, 'text/plain'):
|
||||
log.info(' limiting return to title and authors (2) (%s)' % data.contentType)
|
||||
return title_and_authors
|
||||
|
||||
# convert it to text/plain
|
||||
|
|
Reference in New Issue