sqlalchemy / alembic

A database migrations tool for SQLAlchemy.
MIT License
2.89k stars 247 forks source link

Log directory location is insecure #1552

Closed devinbost closed 1 month ago

devinbost commented 1 month ago

Bug was encountered here: https://github.com/langflow-ai/langflow/issues/4235

I've been looking through the Alembic documentation, and I cannot find a way to change the log directory, such as via the alembic.ini file. Am I just not seeing it?

zzzeek commented 1 month ago

hi -

alembic does not specify a "logging directory". the alembic environment includes a pre-configured logging environment that dumps logging to stdout, which you can see here. An application may reconfigure this to point to a file such as the alembic.log your k8s issue refers to. or it may not use alembic.ini at all and instead use an alternate logging configuration, by modifying the env.py code seen here.