summaryrefslogtreecommitdiff
path: root/nova/service.py
diff options
context:
space:
mode:
authorDan Smith <dansmith@redhat.com>2015-11-13 08:41:20 -0800
committerDan Smith <dansmith@redhat.com>2015-11-13 09:09:33 -0800
commit86e9f88ace4f6860876c1641cc794f63444b7b65 (patch)
treeba0d4e2100fa03a935a6c1363ac12917b1c1ed9c /nova/service.py
parent6bc1da04c7e6217ecfef2bbf483a3d829cf398e9 (diff)
downloadnova-86e9f88ace4f6860876c1641cc794f63444b7b65.tar.gz
Add _LE to LOG.error statement in nova/service
This was feedback from the previous patch. Change-Id: I16a2caaed162af6d460966dacedf947a116a354a
Diffstat (limited to 'nova/service.py')
-rw-r--r--nova/service.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/nova/service.py b/nova/service.py
index 97d55f8f04..b0a7659e31 100644
--- a/nova/service.py
+++ b/nova/service.py
@@ -142,9 +142,10 @@ def _update_service_ref(this_service, context):
this_service.host,
this_service.binary)
if not service:
- LOG.error(_('Unable to find a service record to update for '
- '%(binary)s on %(host)s') % {'binary': this_service.binary,
- 'host': this_service.host})
+ LOG.error(_LE('Unable to find a service record to update for '
+ '%(binary)s on %(host)s') % {
+ 'binary': this_service.binary,
+ 'host': this_service.host})
return
if service.version != service_obj.SERVICE_VERSION:
LOG.info(_LI('Updating service version for %(binary)s on '