Merge "Replace deprecated LOG.warn with LOG.warning"
This commit is contained in:
commit
bf032706db
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user