mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-22 07:19:07 +00:00
Logging: Fix Uvicorn hook
The Uvicorn logging config wasn't being set. Fix that when creating a new server. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
3
main.py
3
main.py
@@ -17,7 +17,7 @@ from fastapi.responses import StreamingResponse
|
||||
from functools import partial
|
||||
from loguru import logger
|
||||
|
||||
from common.logger import setup_logger, get_loading_progress_bar
|
||||
from common.logger import UVICORN_LOG_CONFIG, setup_logger, get_loading_progress_bar
|
||||
import common.gen_logging as gen_logging
|
||||
from backends.exllamav2.model import ExllamaV2Container
|
||||
from backends.exllamav2.utils import check_exllama_version
|
||||
@@ -677,6 +677,7 @@ def start_api(host: str, port: int):
|
||||
app,
|
||||
host=host,
|
||||
port=port,
|
||||
log_config=UVICORN_LOG_CONFIG,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user