Replace deprecated LOG.warn with LOG.warning

Change-Id: I0ca31eac70afaccda73e7819c582af0b226b8442
Closes-Bug: #1508442
This commit is contained in:
Kan 2016-01-05 05:36:34 +00:00
parent 475fe9e638
commit dcdb06d812
1 changed files with 2 additions and 2 deletions

View File

@ -149,8 +149,8 @@ class ISCSIExtension(base.BaseAgentExtension):
try:
rts_root = rtslib_fb.RTSRoot()
except (EnvironmentError, rtslib_fb.RTSLibError) as exc:
LOG.warn('Linux-IO is not available, falling back to TGT. '
'Error: %s.', exc)
LOG.warning('Linux-IO is not available, falling back to TGT. '
'Error: %s.', exc)
rts_root = None
if rts_root is None: