Trying to fix a logging bug?

This commit is contained in:
Scott Idem
2023-06-13 11:07:59 -04:00
parent ff6ef0a28b
commit bb004e4293
2 changed files with 9 additions and 9 deletions

View File

@@ -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},

View File

@@ -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',
)