Changeset - 70126ffbd575
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-05-27 18:27:59
marcin@python-works.com
fixed issue #459. Changed the way of obtaining logger in reindex task.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/celerylib/tasks.py
Show inline comments
 
@@ -72,13 +72,13 @@ def get_logger(cls):
 

	
 
@task(ignore_result=True)
 
@locked_task
 
@dbsession
 
def whoosh_index(repo_location, full_index):
 
    from rhodecode.lib.indexers.daemon import WhooshIndexingDaemon
 
    log = whoosh_index.get_logger(whoosh_index)
 
    log = get_logger(whoosh_index)
 
    DBS = get_session()
 

	
 
    index_location = config['index_dir']
 
    WhooshIndexingDaemon(index_location=index_location,
 
                         repo_location=repo_location, sa=DBS)\
 
                         .run(full_index=full_index)
0 comments (0 inline, 0 general)