From 96d230af0ac1f8c83f61e7ee628905309fcefe11 Mon Sep 17 00:00:00 2001 From: Luiza Orosanu Date: Mon, 2 Oct 2017 10:58:39 +0200 Subject: [PATCH] Fix logger message in lsi_dispatcher (#1603) * Fix logger message typo in lsi_dispatcher * small fix --- gensim/models/lsi_dispatcher.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gensim/models/lsi_dispatcher.py b/gensim/models/lsi_dispatcher.py index dd18734dfb..75a9367d5e 100755 --- a/gensim/models/lsi_dispatcher.py +++ b/gensim/models/lsi_dispatcher.py @@ -124,7 +124,7 @@ def getstate(self): # and not `workers - 1` merges! # but merging only takes place once, after all input data has been processed, # so the overall effect would be small... compared to the amount of coding :-) - logger.info("merging states from %i workers", self.workers) + logger.info("merging states from %i workers", len(self.workers)) workers = list(self.workers.items()) result = workers[0][1].getstate() for workerid, worker in workers[1:]: @@ -175,7 +175,6 @@ def exit(self): worker.exit() logger.info("terminating dispatcher") os._exit(0) # exit the whole process (not just this thread ala sys.exit()) -# endclass Dispatcher def main():