def main():
    setup_logging()

    # make sure all API names and ports are mapped properly
    canonicalize_api_names()

    # start API
    sys.exit(start_up())
Ejemplo n.º 2
0
def main():
    setup_logging()

    # patch moto implementation
    apply_patches()

    # add memory profiling endpoint
    inject_stats_endpoint()

    # make sure all API names and ports are mapped properly
    canonicalize_api_names()

    # start API
    sys.exit(moto_main())