Skip to content

Commit

Permalink
Use logging.WARNING instead of logging.WARN
Browse files Browse the repository at this point in the history
The WARN constant is an undocumented alias for WARNING. Whilst it’s not deprecated, it’s not mentioned at all in the documentation.
  • Loading branch information
thirtysixpw committed Oct 5, 2024
1 parent 9cc68f5 commit 249b9a2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions alembic/templates/async/alembic.ini.mako
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ keys = console
keys = generic

[logger_root]
level = WARN
level = WARNING
handlers = console
qualname =

[logger_sqlalchemy]
level = WARN
level = WARNING
handlers =
qualname = sqlalchemy.engine

Expand Down
4 changes: 2 additions & 2 deletions alembic/templates/generic/alembic.ini.mako
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ keys = console
keys = generic

[logger_root]
level = WARN
level = WARNING
handlers = console
qualname =

[logger_sqlalchemy]
level = WARN
level = WARNING
handlers =
qualname = sqlalchemy.engine

Expand Down
4 changes: 2 additions & 2 deletions alembic/templates/multidb/alembic.ini.mako
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ keys = console
keys = generic

[logger_root]
level = WARN
level = WARNING
handlers = console
qualname =

[logger_sqlalchemy]
level = WARN
level = WARNING
handlers =
qualname = sqlalchemy.engine

Expand Down
8 changes: 4 additions & 4 deletions alembic/testing/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _sqlite_testing_config(sourceless=False, future=False):
keys = console
[logger_root]
level = WARN
level = WARNING
handlers = console
qualname =
Expand Down Expand Up @@ -171,7 +171,7 @@ def _multi_dir_testing_config(sourceless=False, extra_version_location=""):
keys = console
[logger_root]
level = WARN
level = WARNING
handlers = console
qualname =
Expand Down Expand Up @@ -216,7 +216,7 @@ def _no_sql_testing_config(dialect="postgresql", directives=""):
keys = console
[logger_root]
level = WARN
level = WARNING
handlers = console
qualname =
Expand Down Expand Up @@ -497,7 +497,7 @@ def _multidb_testing_config(engines):
keys = console
[logger_root]
level = WARN
level = WARNING
handlers = console
qualname =
Expand Down
4 changes: 2 additions & 2 deletions docs/build/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ The file generated with the "generic" configuration looks like::
keys = generic

[logger_root]
level = WARN
level = WARNING
handlers = console
qualname =

[logger_sqlalchemy]
level = WARN
level = WARNING
handlers =
qualname = sqlalchemy.engine

Expand Down

0 comments on commit 249b9a2

Please sign in to comment.