Skip to content

Commit

Permalink
lowercase log level
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Oct 17, 2024
1 parent 3500c2f commit 35b1339
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/prefect/runner/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,5 +297,7 @@ def start_webserver(runner: "Runner", log_level: Optional[str] = None) -> None:
host = PREFECT_RUNNER_SERVER_HOST.value()
port = PREFECT_RUNNER_SERVER_PORT.value()
log_level = log_level or PREFECT_RUNNER_SERVER_LOG_LEVEL.value()
assert log_level is not None
webserver = build_server(runner)
uvicorn.run(webserver, host=host, port=port, log_level=log_level)
# uvicorn keeps its mapping of log levels in lowercase
uvicorn.run(webserver, host=host, port=port, log_level=log_level.lower())

0 comments on commit 35b1339

Please sign in to comment.