From ac41f82c1d7a82b203a7e5064c65fdb28ab02fa9 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Fri, 14 Sep 2018 12:42:41 +0200 Subject: [PATCH] teuthology/task/sleep: be explicit about seconds Add the word "seconds" at the end of the log message, since "time.sleep()" takes a number which is always interpreted as the number of seconds to sleep for. Before this commit, the log said: INFO:teuthology.task.sleep:Sleeping for 10 After: INFO:teuthology.task.sleep:Sleeping for 10 seconds Signed-off-by: Nathan Cutler --- teuthology/task/sleep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/task/sleep.py b/teuthology/task/sleep.py index 4e36d599b6..bd6d445446 100644 --- a/teuthology/task/sleep.py +++ b/teuthology/task/sleep.py @@ -28,5 +28,5 @@ def task(ctx, config): config = {} assert isinstance(config, dict) duration = int(config.get('duration', 5)) - log.info('Sleeping for %d', duration) + log.info('Sleeping for {} seconds'.format(duration)) time.sleep(duration) -- 2.39.5