def main():

  logging.getLogger().setLevel(logging.INFO)
  logging.info("Starting server on port {0}".format(DEFAULT_PORT))

  # Create backups dir if it doesn't exist.
  if not backup_recovery_helper.mkdir(BACKUP_DIR_LOCATION):
    logging.warning("Dir '{0}' already exists. Skipping dir creation...".
      format(BACKUP_DIR_LOCATION))

  # Start Tornado.
  http_server = tornado.httpserver.HTTPServer(get_application())
  http_server.bind(DEFAULT_PORT)
  http_server.start(0)
  tornado.ioloop.IOLoop.instance().start()
Main.
dataset/ETHPy150Open AppScale/appscale/AppDB/backup/backup_recovery_service.py/main