mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-09-29 08:11:14 +00:00
rc
This commit is contained in:
parent
a787a65e6c
commit
0c901c3729
|
@ -1,4 +1,4 @@
|
||||||
import logging
|
import logging, sys
|
||||||
from fastapi import FastAPI, Request,Security,Depends
|
from fastapi import FastAPI, Request,Security,Depends
|
||||||
from fastapi.exceptions import RequestValidationError
|
from fastapi.exceptions import RequestValidationError
|
||||||
from fastapi.responses import JSONResponse
|
from fastapi.responses import JSONResponse
|
||||||
|
@ -15,10 +15,16 @@ from fastapi.security.api_key import APIKeyHeader
|
||||||
|
|
||||||
uvicorn_logger = logging.getLogger("uvicorn")
|
uvicorn_logger = logging.getLogger("uvicorn")
|
||||||
|
|
||||||
for handler in uvicorn_logger.handlers:
|
# for handler in uvicorn_logger.handlers:
|
||||||
uvicorn_logger.removeHandler(handler)
|
# uvicorn_logger.removeHandler(handler)
|
||||||
for handler in logger._error_logger.handlers:
|
# for handler in logger._error_logger.handlers:
|
||||||
uvicorn_logger.addHandler(handler)
|
# uvicorn_logger.addHandler(handler)
|
||||||
|
|
||||||
|
# 创建一个日志处理器,将日志发送到 stdout
|
||||||
|
stdout_handler = logging.StreamHandler(sys.stdout)
|
||||||
|
|
||||||
|
# 将日志处理器添加到 Uvicorn 的 logger
|
||||||
|
uvicorn_logger.addHandler(stdout_handler)
|
||||||
|
|
||||||
uvicorn_logger.setLevel(logging.INFO)
|
uvicorn_logger.setLevel(logging.INFO)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# modify time: 202310201720, you can modify here to trigger Docker Build action
|
# modify time: 202310211140, you can modify here to trigger Docker Build action
|
||||||
|
|
||||||
FROM python:3.10-bullseye AS buildstage
|
FROM python:3.10-bullseye AS buildstage
|
||||||
LABEL maintainer="Websoft9<help@websoft9.com>"
|
LABEL maintainer="Websoft9<help@websoft9.com>"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "0.8.26-rc1",
|
"version": "0.8.26-rc2",
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"portainer": "0.0.7",
|
"portainer": "0.0.7",
|
||||||
"nginx": "0.0.5",
|
"nginx": "0.0.5",
|
||||||
|
|
Loading…
Reference in a new issue