def main(): from handlers.records import queue_listener event_thread = threading.Thread(target=queue_listener) event_thread.daemon = True event_thread.start() make_trace_folder(settings) app = DataRecorder() http_server = tornado.httpserver.HTTPServer(app) http_server.listen(options.port) tornado.ioloop.IOLoop.instance().start()
def setUp(self): super(BaseRecorderTestCase, self).setUp() make_trace_folder(settings)