From c6f3f50af92c3de9e0c014dea8445e13097a8b82 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sat, 26 Oct 2024 14:56:01 +0200 Subject: [PATCH] CLI: Fix `uvicorn.run` invocation The `debug` argument no longer exists. Let's adjust the `log_level` to `debug` instead. --- responder/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/responder/api.py b/responder/api.py index 75c52b08..5175fc12 100644 --- a/responder/api.py +++ b/responder/api.py @@ -350,9 +350,11 @@ def serve(self, *, address=None, port=None, debug=False, **options): address = "127.0.0.1" if port is None: port = 5042 + if debug: + options["log_level"] = "debug" def spawn(): - uvicorn.run(self, host=address, port=port, debug=debug, **options) + uvicorn.run(self, host=address, port=port, **options) spawn()