Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registrar logs de peticiones #173

Open
rogelioLpz opened this issue Apr 17, 2023 · 0 comments
Open

Registrar logs de peticiones #173

rogelioLpz opened this issue Apr 17, 2023 · 0 comments
Assignees

Comments

@rogelioLpz
Copy link
Member

rogelioLpz commented Apr 17, 2023

Crear middleware ó función que permita registrar los logs
Usando la variable de entorno APP_LOGS_URL

Puede ser algo así

APP_LOGS_URL = os.gentenv('APP_LOGS_URL')

async def logging_middleware(request: Request, call_next):
	if not APP_LOGS_URL:
		return await call_next(request)
	... 	# rest of code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants