Merge "Replace use of log.warn with log.warning"

This commit is contained in:
Zuul 2019-09-16 08:21:00 +00:00 committed by Gerrit Code Review
commit 8d3c3b5259
1 changed files with 2 additions and 1 deletions

View File

@ -336,7 +336,8 @@ class ProtectionManager(manager.Manager):
checkpoint_dict = checkpoint.to_dict()
if not context.is_admin and (
context.project_id != checkpoint_dict['project_id']):
LOG.warn("Delete checkpoint(%s) is not allowed." % checkpoint_id)
LOG.warning("Delete checkpoint(%s) is not allowed.",
checkpoint_id)
raise exception.DeleteCheckpointNotAllowed(
checkpoint_id=checkpoint_id)