Add logger initialization for improved logging in FastAPI app
This commit is contained in:
@@ -49,6 +49,8 @@ app = FastAPI(
|
||||
openapi_url="/api/openapi.json" if settings.DEBUG else None,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Registrar manejadores de excepciones
|
||||
register_exception_handlers(app)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user