Merge "replace string format arguments with function parameters"

This commit is contained in:
Jenkins 2016-01-25 07:54:09 +00:00 committed by Gerrit Code Review
commit a053593c13
2 changed files with 5 additions and 5 deletions

View File

@ -141,7 +141,7 @@ class Server(object):
self.log_queue,
self.ready))
self.process.start()
LOG.debug("Server process started: pid: %d" % self.process.pid)
LOG.debug("Server process started: pid: %d", self.process.pid)
def _run_server(self, conf, url, log_queue, ready):
server_configurer(log_queue)
@ -161,7 +161,7 @@ class Server(object):
LOG.debug("Waiting for the stop signal ...")
time.sleep(1)
self.rpc_server.stop()
LOG.debug("Leaving process T:%s Pid:%d" % (str(target),
LOG.debug("Leaving process T:%s Pid:%d", (str(target),
os.getpid()))
def cleanup(self):
@ -217,7 +217,7 @@ class MutliprocTestCase(utils.SkipIfNoTransportURL):
def spawn_server(self, name, wait_for_server=False, topic=None):
srv = Server(self.conf, self.log_queue, self.url, name, topic)
LOG.debug("[SPAWN] %s (starting)..." % srv.name)
LOG.debug("[SPAWN] %s (starting)...", srv.name)
srv.start()
if wait_for_server:
while not srv.ready.value:

View File

@ -446,7 +446,7 @@ def main():
with open('./oslo_res_%s.txt' % args.server, 'a+') as f:
f.write(log_msg + '\n')
LOG.info("calls finished, wait %d seconds" % args.exit_wait)
LOG.info("calls finished, wait %d seconds", args.exit_wait)
time.sleep(args.exit_wait)