Use %()d for integer substitution

TrivialFix

Change-Id: If7c0d773cdcdcd059ea438750eb3c098d2c6c309
This commit is contained in:
tpatil 2016-08-15 14:47:09 -07:00
parent 984ab82a4d
commit 8da0eff0ab
1 changed files with 3 additions and 3 deletions

View File

@ -97,12 +97,12 @@ class Server(service.ServiceBase):
try:
self._socket = eventlet.listen(bind_addr, family, backlog=backlog)
except EnvironmentError:
LOG.error(_LE("Could not bind to %(host)s:%(port)s"),
LOG.error(_LE("Could not bind to %(host)s:%(port)d"),
{'host': host, 'port': port})
raise
(self.host, self.port) = self._socket.getsockname()[0:2]
LOG.info(_LI("%(name)s listening on %(host)s:%(port)s"),
LOG.info(_LI("%(name)s listening on %(host)s:%(port)d"),
{'name': self.name, 'host': self.host, 'port': self.port})
def start(self):
@ -167,7 +167,7 @@ class Server(service.ServiceBase):
except Exception:
with excutils.save_and_reraise_exception():
LOG.error(_LE("Failed to start %(name)s on %(host)s"
":%(port)s with SSL support"),
":%(port)d with SSL support"),
{'name': self.name, 'host': self.host,
'port': self.port})