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: I9812372ca32497e7806a4b365aef2670ef7ad9af
This commit is contained in:
gecong1973 2016-11-16 15:57:49 +08:00
parent c9488cff61
commit 52994e3782
1 changed files with 2 additions and 2 deletions

View File

@ -209,8 +209,8 @@ class MonitorNeutronAgentsDaemon(Daemon):
return False
if not self.is_same_host(crm_no_1_node):
LOG.warn('Only the first crm node %s could reschedule. '
% crm_no_1_node)
LOG.warning('Only the first crm node %s could reschedule. '
% crm_no_1_node)
return False
return True