Beispiel #1
0
 def run(self):
     app = App.get_app(self._app_name)
     time_string = datetime.datetime.strftime(app.last_build_time,
                                              LogSettings.TIME_FORMAT)
     self._stream = AppLogStreamer(self._app_name,
                                   time_string).get_stream()
     while not self._stopped:
         time.sleep(0.05)
         try:
             msg = self._stream.next()
             if msg:
                 self._ioloop.add_callback(self._handler.write_message,
                                           msg)
         except StopIteration:
             self.stop()