Skip to content

Commit

Permalink
CLI: Fix uvicorn.run invocation
Browse files Browse the repository at this point in the history
The `debug` argument no longer exists. Let's adjust the `log_level` to
`debug` instead.
  • Loading branch information
amotl committed Oct 26, 2024
1 parent a149dad commit c6f3f50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion responder/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit c6f3f50

Please sign in to comment.