Merge "Replace LOG.warn with LOG.warning"
This commit is contained in:
commit
76ca03fd28
|
@ -59,7 +59,8 @@ def _get_service_url(request):
|
||||||
"""Get freezer api url"""
|
"""Get freezer api url"""
|
||||||
hardcoded_url = getattr(settings, 'FREEZER_API_URL', None)
|
hardcoded_url = getattr(settings, 'FREEZER_API_URL', None)
|
||||||
if hardcoded_url is not None:
|
if hardcoded_url is not None:
|
||||||
LOG.warn('Using hardcoded FREEZER_API_URL: {0}'.format(hardcoded_url))
|
LOG.warning('Using hardcoded FREEZER_API_URL:{0}'
|
||||||
|
.format(hardcoded_url))
|
||||||
return hardcoded_url
|
return hardcoded_url
|
||||||
|
|
||||||
e_type = getattr(settings, 'OPENSTACK_ENDPOINT_TYPE', '')
|
e_type = getattr(settings, 'OPENSTACK_ENDPOINT_TYPE', '')
|
||||||
|
@ -77,7 +78,7 @@ def _get_service_url(request):
|
||||||
raise ValueError('Could no get FREEZER_API_URL from config'
|
raise ValueError('Could no get FREEZER_API_URL from config'
|
||||||
' or Keystone')
|
' or Keystone')
|
||||||
except Exception:
|
except Exception:
|
||||||
LOG.warn('Could no get FREEZER_API_URL from config or Keystone')
|
LOG.warning('Could no get FREEZER_API_URL from config or Keystone')
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue