From 5746efbbc218f05134c8a80cf8af5a28b2cba59b Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 15 Aug 2013 08:49:35 -0500 Subject: [PATCH] Fix some instances where print is being used instead of log --- teuthology/task/rgw-logsocket.py | 4 ++-- teuthology/task/swift.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/teuthology/task/rgw-logsocket.py b/teuthology/task/rgw-logsocket.py index fff5b7b698be3..d71c4200f3267 100644 --- a/teuthology/task/rgw-logsocket.py +++ b/teuthology/task/rgw-logsocket.py @@ -67,8 +67,8 @@ def run_tests(ctx, config): assert len(out) > 100 - print 'Received', out - + log.info('Received', out) + yield diff --git a/teuthology/task/swift.py b/teuthology/task/swift.py index 4c287a900a1f8..8a0f343420b11 100644 --- a/teuthology/task/swift.py +++ b/teuthology/task/swift.py @@ -97,8 +97,8 @@ def configure(ctx, config): log.info('Configuring testswift...') testdir = teuthology.get_testdir(ctx) for client, properties in config['clients'].iteritems(): - print 'client={c}'.format(c=client) - print 'config={c}'.format(c=config) + log.info('client={c}'.format(c=client)) + log.info('config={c}'.format(c=config)) testswift_conf = config['testswift_conf'][client] if properties is not None and 'rgw_server' in properties: host = None @@ -112,7 +112,7 @@ def configure(ctx, config): else: testswift_conf['func_test']['auth_host'] = 'localhost' - print client + log.info(client) (remote,) = ctx.cluster.only(client).remotes.keys() remote.run( args=[ @@ -203,7 +203,7 @@ def task(ctx, config): config = dict.fromkeys(config) clients = config.keys() - print 'clients={c}'.format(c=clients) + log.info('clients={c}'.format(c=clients)) testswift_conf = {} for client in clients: -- 2.39.5