Commit 54087509 authored by Wout De Nolf's avatar Wout De Nolf
Browse files

StopActor: fix logging on success and failure

parent 54154d46
......@@ -62,8 +62,8 @@ class StopActor(ThreadCountingActor):
if self.parent is None:
return
if success:
logger.debug('In {0}, parent {1}, finished'.format(self.name, self.parent.name))
UtilsMongoDb.closeMongo(self.parent.mongoId, status='finished')
else:
logger.error('In {0}, parent {1}, timeout detected'.format(self.name, self.parent.name))
UtilsMongoDb.closeMongo(self.parent.mongoId, status='timeout')
else:
logger.error('In {0}, parent {1}, finished'.format(self.name, self.parent.name))
UtilsMongoDb.closeMongo(self.parent.mongoId, status='finished')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment