Using LOG.warning replace LOG.warn
Python 3 deprecated the logger.warn method, see: https://docs.python.org/3/library/logging.html#logging.warning so we prefer to use warning to avoid DeprecationWarning. Closes-Bugs: #1529913 Change-Id: Icc01ce5fbd10880440cf75a2e0833394783464a0 Co-Authored-By: Gary Kotton <gkotton@vmware.com>
This commit is contained in:
parent
aec11b3fd9
commit
6180a9abc5
|
@ -140,7 +140,7 @@ class BgpDrAgentSchedulerBase(BgpDrAgentFilter):
|
|||
|
||||
if agents_db.AgentDbMixin.is_agent_down(
|
||||
bgp_dragent.heartbeat_timestamp):
|
||||
LOG.warn(_LW('BgpDrAgent %s is down'), bgp_dragent.id)
|
||||
LOG.warning(_LW('BgpDrAgent %s is down'), bgp_dragent.id)
|
||||
return False
|
||||
|
||||
if self._is_bgp_speaker_hosted(context, bgp_dragent['id']):
|
||||
|
|
Loading…
Reference in New Issue