Merge "Python 3 deprecated the logger.warn method in favor of warning"

This commit is contained in:
Jenkins 2016-02-03 03:48:12 +00:00 committed by Gerrit Code Review
commit 08f313e626

View File

@ -44,8 +44,8 @@ def init_config(sql_url=None):
"the CLI or the configuration file.")
if sqlalchemy_url and 'sqlite' in sqlalchemy_url:
LOG.warn('!!! Limited support for migration commands using sqlite'
' databases; This operation may not succeed.')
LOG.warning('!!! Limited support for migration commands using sqlite'
' databases; This operation may not succeed.')
config = alembic_config.Config(
os.path.join(os.path.dirname(__file__), 'alembic.ini')