loglevel setting on prod command (#594)
This commit is contained in:
parent
6c8ce67b8b
commit
9a9a731766
@ -801,30 +801,28 @@ def run_backend_prod(
|
||||
|
||||
num_workers = get_num_workers()
|
||||
command = (
|
||||
constants.RUN_BACKEND_PROD_WINDOWS
|
||||
+ [
|
||||
[
|
||||
*constants.RUN_BACKEND_PROD_WINDOWS,
|
||||
"--host",
|
||||
"0.0.0.0",
|
||||
"--port",
|
||||
str(port),
|
||||
"--log-level",
|
||||
loglevel,
|
||||
f"{app_name}:{constants.APP_VAR}",
|
||||
]
|
||||
if platform.system() == "Windows"
|
||||
else constants.RUN_BACKEND_PROD
|
||||
+ [
|
||||
else [
|
||||
*constants.RUN_BACKEND_PROD,
|
||||
"--bind",
|
||||
f"0.0.0.0:{port}",
|
||||
"--threads",
|
||||
str(num_workers),
|
||||
"--log-level",
|
||||
str(loglevel),
|
||||
f"{app_name}:{constants.APP_VAR}()",
|
||||
]
|
||||
)
|
||||
|
||||
command += [
|
||||
"--log-level",
|
||||
loglevel.value,
|
||||
"--workers",
|
||||
str(num_workers),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user