Exemplo n.º 1
0
 def follow(self):
     from twisted.internet import reactor
     from buildbot_worker.scripts.logwatcher import LogWatcher
     self.rc = 0
     print("Following twistd.log until startup finished..")
     lw = LogWatcher("twistd.log")
     d = lw.start()
     d.addCallbacks(self._success, self._failure)
     reactor.run()
     return self.rc
Exemplo n.º 2
0
 def follow(self):
     from twisted.internet import reactor
     from buildbot_worker.scripts.logwatcher import LogWatcher
     self.rc = 0
     print("Following twistd.log until startup finished..")
     lw = LogWatcher("twistd.log")
     d = lw.start()
     d.addCallbacks(self._success, self._failure)
     reactor.run()
     return self.rc