diff --git a/conftest.py b/conftest.py --- a/conftest.py +++ b/conftest.py @@ -4,7 +4,6 @@ # See top-level LICENSE file for more information pytest_plugins = [ - "aiohttp.pytest_plugin", "swh.storage.pytest_plugin", "swh.loader.pytest_plugin", ] diff --git a/swh/vault/cli.py b/swh/vault/cli.py --- a/swh/vault/cli.py +++ b/swh/vault/cli.py @@ -165,11 +165,11 @@ @click.pass_context def serve(ctx, config_file, host, port, debug): """Software Heritage Vault RPC server.""" - import aiohttp - from swh.vault.api.server import make_app_from_configfile ctx.ensure_object(dict) + if "log_level" in ctx.obj: + logging.getLogger("werkzeug").setLevel(ctx.obj["log_level"]) try: app = make_app_from_configfile(config_file, debug=debug) @@ -177,7 +177,7 @@ click.echo(e.msg, err=True) ctx.exit(1) - aiohttp.web.run_app(app, host=host, port=int(port)) + app.run(host, port=int(port), debug=debug) def main():