fix log message
This commit is contained in:
parent
d5d77fd79b
commit
0cddf437fb
@ -15,7 +15,7 @@ class ElasticSearchPush(Task):
|
|||||||
doc = kernel.db.tracked.find_one({'_id': doc_id})
|
doc = kernel.db.tracked.find_one({'_id': doc_id})
|
||||||
text = kernel.extract_text(doc)
|
text = kernel.extract_text(doc)
|
||||||
|
|
||||||
self.get_logger().debug('adding {1} to ElasticSearch'.format(doc_id))
|
self.get_logger().debug('adding {0} to ElasticSearch'.format(doc_id))
|
||||||
|
|
||||||
for i, piece in enumerate(pieces):
|
for i, piece in enumerate(pieces):
|
||||||
es.index(dict(doc['metadata'], text=text),
|
es.index(dict(doc['metadata'], text=text),
|
||||||
|
Loading…
Reference in New Issue
Block a user