From: Nathan Cutler Date: Fri, 14 Sep 2018 10:42:41 +0000 (+0200) Subject: teuthology/task/sleep: be explicit about seconds X-Git-Tag: 1.1.0~312^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1209%2Fhead;p=teuthology.git 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 --- diff --git a/teuthology/task/sleep.py b/teuthology/task/sleep.py index 4e36d599b..bd6d44544 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)