SQL logging will render all the SQL being emitted which should be enough to see everything the script is doing against the database. that is, if you ran op.alter_column(), you'd see "ALTER COLUMN..." in the log. not sure what else you are looking to see.
do you think you're having a deadlock in Python and not against the database? there's no good way to debug that without using something like pdb or embedding print statements. that's a very unusual kind of issue in a tool like alembic and there are no known issues which could cause this. On Thu, Feb 27, 2020, at 1:12 PM, doi zece wrote: > OK I managed to get some logging (it seems my alembic env.py was missing the > fileConfig(config.config_file_name)). But still I'm not getting what i want. > > Basically i want a long entry for every single operation in the migration > script. And this, if possible, without having to add log statements all over > the place. Is that possible ? > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy-alembic" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sqlalchemy-alembic+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sqlalchemy-alembic/b0dc3a7e-cb00-456c-9e51-51dc56294380%40googlegroups.com > > <https://groups.google.com/d/msgid/sqlalchemy-alembic/b0dc3a7e-cb00-456c-9e51-51dc56294380%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "sqlalchemy-alembic" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy-alembic+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy-alembic/44b071d5-15ff-4013-9c34-fe18bcc3b8db%40www.fastmail.com.