Merge "Replace deprecated LOG.warn with LOG.warning"

This commit is contained in:
Jenkins 2016-03-11 09:43:40 +00:00 committed by Gerrit Code Review
commit bf032706db
2 changed files with 6 additions and 6 deletions

View File

@ -191,8 +191,8 @@ class ThresholdEvaluator(evaluator.Evaluator):
return
if state == evaluator.UNKNOWN and not unknown:
LOG.warn(_LW('Expecting %(expected)d datapoints but only get '
'%(actual)d') % {
LOG.warning(_LW('Expecting %(expected)d datapoints but only get '
'%(actual)d') % {
'expected': alarm.rule['evaluation_periods'],
'actual': len(statistics)})
# Reason is not same as log message because we want to keep

View File

@ -115,10 +115,10 @@ def register_keystoneauth_opts(conf):
def setup_keystoneauth(conf):
if conf[CFG_GROUP].auth_type == "password-aodh-legacy":
LOG.warn("Value 'password-aodh-legacy' for '[%s]/auth_type' "
"is deprecated. And will be removed in Aodh 3.0. "
"Use 'password' instead.",
CFG_GROUP)
LOG.warning("Value 'password-aodh-legacy' for '[%s]/auth_type' "
"is deprecated. And will be removed in Aodh 3.0. "
"Use 'password' instead.",
CFG_GROUP)
ka_loading.load_auth_from_conf_options(conf, CFG_GROUP)