]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Report warnings from caller's file/line number, not utils.py
authorAsh Berlin-Taylor <ash_github@firemirror.com>
Fri, 21 Jun 2019 12:53:11 +0000 (08:53 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 21 Jun 2019 15:19:06 +0000 (11:19 -0400)
commit26453a8b284743bd590a86208968ca862caa67ca
treeb1037c30551216705a279062c1a297a04fac87ae
parenta8b60b4ad9fe8339629da9ce41853519460abb15
Report warnings from caller's file/line number, not utils.py

Warnings emitted by Alembic now include a default stack level of 2, and in
some cases it's set to 3, in order to help warnings indicate more closely
where they are originating from.  Pull request courtesy Ash Berlin-Taylor.

Closes: #578
Pull-request: https://github.com/sqlalchemy/alembic/pull/578
Pull-request-sha: 49d2922dc61bfc6da42a5f45b53f04032970daeb

Change-Id: I31e19cacd63a4a7ff0557d9e7f52d348f63744d6
alembic/command.py
alembic/ddl/impl.py
alembic/runtime/migration.py
alembic/util/messaging.py
docs/build/unreleased/warn_depth.rst [new file with mode: 0644]