Trying to fix a logging bug?
This commit is contained in:
12
app/log.py
12
app/log.py
@@ -18,11 +18,11 @@ logging.config.dictConfig({
|
||||
#'filename': 'example.log',
|
||||
# 'level': logging.ERROR,
|
||||
'handlers': {
|
||||
'console': {
|
||||
'class': 'logging.StreamHandler',
|
||||
'stream': 'ext://sys.stderr',
|
||||
'formatter': 'short',
|
||||
},
|
||||
# 'console': {
|
||||
# 'class': 'logging.StreamHandler',
|
||||
# 'stream': 'ext://sys.stderr',
|
||||
# 'formatter': 'short',
|
||||
# },
|
||||
'log_file_all': {
|
||||
'level': 'NOTSET',
|
||||
'class': 'logging.handlers.RotatingFileHandler',
|
||||
@@ -55,7 +55,7 @@ logging.config.dictConfig({
|
||||
},
|
||||
'loggers': {
|
||||
# 'uvicorn': {'handlers': ['default'], 'level': 'INFO'},
|
||||
'uvicorn': {'handlers': ['console'], 'level': 'INFO'},
|
||||
# 'uvicorn': {'handlers': ['console'], 'level': 'INFO'},
|
||||
# 'uvicorn.error': {'level': 'INFO', 'handlers': ['default'], 'propagate': True},
|
||||
# 'uvicorn.error': {'level': 'INFO', 'handlers': ['console'], 'propagate': True},
|
||||
# 'uvicorn.access': {'handlers': ['access'], 'level': 'INFO', 'propagate': False},
|
||||
|
||||
@@ -23,7 +23,7 @@ from app.routers import aether_cfg, api_crud, api, importing, sql, account, acti
|
||||
from app.db_sql import sql_select # , sql_connect
|
||||
|
||||
|
||||
print('### **** *** ** * The Aether FastAPI API is loading... * ** *** **** ###')
|
||||
print('### **** *** ** * The Aether API v5 using FastAPI is loading... * ** *** **** ###')
|
||||
|
||||
|
||||
#log = logging.getLogger('root')
|
||||
@@ -36,8 +36,8 @@ print('### **** *** ** * The Aether FastAPI API is loading... * ** *** **** ###'
|
||||
app = FastAPI(
|
||||
# debug = True,
|
||||
title = 'Aether API',
|
||||
description = 'One Sky IT\'s Aether API using FastAPI.',
|
||||
version = '5.8.0',
|
||||
description = 'One Sky IT\'s Aether API v5 using FastAPI.',
|
||||
version = '4.9.0',
|
||||
operationsSorter = 'method',
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user