From 8da0eff0ab0a2207fa9c37b227c153e25e4ff2f3 Mon Sep 17 00:00:00 2001 From: tpatil Date: Mon, 15 Aug 2016 14:47:09 -0700 Subject: [PATCH] Use %()d for integer substitution TrivialFix Change-Id: If7c0d773cdcdcd059ea438750eb3c098d2c6c309 --- masakari/wsgi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/masakari/wsgi.py b/masakari/wsgi.py index c588e44a..f50a8893 100644 --- a/masakari/wsgi.py +++ b/masakari/wsgi.py @@ -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})