mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-11-27 09:01:06 +00:00
log version
This commit is contained in:
1 parent
77c7617319
commit
1f23eaf37e
1 file changed
+4
-1
@@ -6,9 +6,12 @@ import uvicorn
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.gzip import GZipMiddleware
|
||||
|
||||
from src.consts import LOG_LEVEL
|
||||
from src.consts import LOG_LEVEL, VERSION
|
||||
from src.endpoints import router
|
||||
from src.middlewares import LogRequest
|
||||
from src.utils import logger
|
||||
|
||||
logger.info("Using version %s", VERSION)
|
||||
|
||||
app = FastAPI(debug=LOG_LEVEL == logging.DEBUG, log_level=LOG_LEVEL)
|
||||
app.add_middleware(GZipMiddleware)
|
||||
|
||||
Reference in new issue
Block a user