git://git.onelab.eu
/
nodemanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added logging. Forgot to return anything; threads would blow up since test of is_ru...
[nodemanager.git]
/
accounts.py
diff --git
a/accounts.py
b/accounts.py
index
a6dd6d2
..
cb41b67
100644
(file)
--- a/
accounts.py
+++ b/
accounts.py
@@
-147,7
+147,10
@@
class Worker:
def stop(self): self._q.put((self._stop,))
def _stop(self): self._acct.stop()
def stop(self): self._q.put((self._stop,))
def _stop(self): self._acct.stop()
- def is_running(self): self._acct.is_running()
+ def is_running(self):
+ status = self._acct.is_running()
+ if not status: logger.verbose("Worker(%s): is not running" % self.name)
+ return status
def _destroy(self, curr_class):
self._acct = None
def _destroy(self, curr_class):
self._acct = None