Added logging. Forgot to return anything; threads would blow up since test of is_ru...
[nodemanager.git] / accounts.py
index a6dd6d2..cb41b67 100644 (file)
@@ -147,7 +147,10 @@ class Worker:
     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