Replace LOG.warn with LOG.warning
logging.warn is deprecated in Python 3 [1]. [1] https://docs.python.org/3/library/logging.html#logging.warning Change-Id: I4ca96aa2b7e419bf3ade557c8a3a04bbb644d407
This commit is contained in:
parent
b0d38c4342
commit
426e954bd0
@ -653,7 +653,7 @@ class LBaaSV2EventHandler(agent_base.AgentBaseEventHandler,
|
||||
if operation == lb_const.DELETE:
|
||||
msg = (
|
||||
"Failed to delete loadbalancer %s" % (loadbalancer['id']))
|
||||
LOG.warn(msg)
|
||||
LOG.warning(msg)
|
||||
del LBaaSV2EventHandler.instance_mapping[loadbalancer['id']]
|
||||
else:
|
||||
self.plugin_rpc.update_status(
|
||||
@ -696,7 +696,7 @@ class LBaaSV2EventHandler(agent_base.AgentBaseEventHandler,
|
||||
except Exception:
|
||||
if operation == lb_const.DELETE:
|
||||
msg = ("Failed to delete listener %s" % (listener['id']))
|
||||
LOG.warn(msg)
|
||||
LOG.warning(msg)
|
||||
else:
|
||||
self.plugin_rpc.update_status(
|
||||
lb_const.LISTENER, listener['id'], root_lb_id,
|
||||
@ -738,7 +738,7 @@ class LBaaSV2EventHandler(agent_base.AgentBaseEventHandler,
|
||||
except Exception:
|
||||
if operation == lb_const.DELETE:
|
||||
msg = "Failed to delete pool %s" % (pool['id'])
|
||||
LOG.warn(msg)
|
||||
LOG.warning(msg)
|
||||
else:
|
||||
self.plugin_rpc.update_status(
|
||||
lb_const.POOL, pool['id'], root_lb_id,
|
||||
@ -779,7 +779,7 @@ class LBaaSV2EventHandler(agent_base.AgentBaseEventHandler,
|
||||
except Exception:
|
||||
if operation == lb_const.DELETE:
|
||||
msg = ("Failed to delete member %s" % (member['id']))
|
||||
LOG.warn(msg)
|
||||
LOG.warning(msg)
|
||||
else:
|
||||
self.plugin_rpc.update_status(
|
||||
lb_const.MEMBER, member['id'], root_lb_id,
|
||||
@ -827,7 +827,7 @@ class LBaaSV2EventHandler(agent_base.AgentBaseEventHandler,
|
||||
if operation == lb_const.DELETE:
|
||||
msg = ("Failed to delete pool health monitor."
|
||||
" assoc_id: %s" % (assoc_id))
|
||||
LOG.warn(msg)
|
||||
LOG.warning(msg)
|
||||
else:
|
||||
self.plugin_rpc.update_status(
|
||||
lb_const.HEALTHMONITOR, healthmonitor['id'], root_lb_id,
|
||||
|
@ -368,7 +368,7 @@ class ConfiguratorModule(object):
|
||||
else:
|
||||
msg = ("Identified duplicate registration with service type %s." %
|
||||
service_type)
|
||||
LOG.warn(msg)
|
||||
LOG.warning(msg)
|
||||
|
||||
# Register the service agent irrespective of previous registration
|
||||
self.sa_instances.update({service_type: service_agent})
|
||||
|
@ -647,7 +647,7 @@ def load_nfp_modules_from_path(conf, controller, path):
|
||||
LOG.error(message)
|
||||
message = ("(module - %s) - does not implement"
|
||||
"nfp_module_init()") % (identify(pymodule))
|
||||
LOG.warn(message)
|
||||
LOG.warning(message)
|
||||
except ImportError:
|
||||
message = "Failed to import module %s" % (pyfile)
|
||||
LOG.error(message)
|
||||
|
Loading…
Reference in New Issue
Block a user