Replace deprecated LOG.warn with LOG.warning
LOG.warn is deprecated. It still used in a few places. Updated to non-deprecated LOG.warning. Change-Id: I9f79c72f692a90bd6cd3fc101c0b6d785da921f0 Closes-Bug:#1508442
This commit is contained in:
parent
accf1cf135
commit
9b748c6c0e
|
@ -349,8 +349,8 @@ index 4fd77e3..dce7feb 100644
|
|||
canary_flow = self.int_br.dump_flows_for_table(constants.CANARY_TABLE)
|
||||
+ self.set_controller_lock.release()
|
||||
if canary_flow == '':
|
||||
LOG.warn(_LW("OVS is restarted. OVSNeutronAgent will reset "
|
||||
"bridges and recover ports."))
|
||||
LOG.warning(_LW("OVS is restarted. OVSNeutronAgent will reset "
|
||||
"bridges and recover ports."))
|
||||
@@ -1467,6 +1577,12 @@ class OVSNeutronAgent(sg_rpc.SecurityGroupAgentRpcCallbackMixin,
|
||||
len(port_info.get('updated', [])))
|
||||
port_stats['regular']['removed'] = (
|
||||
|
|
|
@ -114,8 +114,8 @@ class DfLocalController(object):
|
|||
|
||||
except Exception as e:
|
||||
self.sync_finished = False
|
||||
LOG.warn(_LW("run_db_poll - suppressing exception"))
|
||||
LOG.warn(e)
|
||||
LOG.warning(_LW("run_db_poll - suppressing exception"))
|
||||
LOG.warning(e)
|
||||
|
||||
def chassis_created(self, chassis):
|
||||
# Check if tunnel already exists to this chassis
|
||||
|
|
|
@ -1502,7 +1502,7 @@ class L3ReactiveApp(DFlowApp):
|
|||
try:
|
||||
return int(netaddr.IPAddress(datapath.address[0], version=4))
|
||||
except Exception:
|
||||
LOG.warn(_LW("Invalid remote IP: %s"), datapath.address)
|
||||
LOG.warning(_LW("Invalid remote IP: %s"), datapath.address)
|
||||
return
|
||||
|
||||
def _get_match_vrouter_arp_responder(self, datapath, segmentation_id,
|
||||
|
|
|
@ -102,7 +102,7 @@ class NbApi(object):
|
|||
self.db_apply_failed = False
|
||||
except Exception as e:
|
||||
if "ofport is 0" not in e.message:
|
||||
LOG.warn(e)
|
||||
LOG.warning(e)
|
||||
self.db_apply_failed = True
|
||||
time.sleep(1)
|
||||
|
||||
|
|
|
@ -177,6 +177,6 @@ class EtcdDbDriver(db_api.DbApi):
|
|||
self.current_key = entry.modifiedIndex + 1
|
||||
except Exception as e:
|
||||
if "Read timed out" not in e.message:
|
||||
LOG.warn(e)
|
||||
LOG.warning(e)
|
||||
self.notify_callback(None, None, 'sync',
|
||||
None)
|
||||
|
|
Loading…
Reference in New Issue