From a41349930e174635d77665b821773182dad9721f Mon Sep 17 00:00:00 2001 From: Arnaud Morin Date: Mon, 1 Sep 2025 20:58:53 +0200 Subject: [PATCH] Stop printing in random_sleep random_sleep is used in mistral unit testing code. we don't need to print anything, not useful and polluting logs. Change-Id: I89571d8734130002f0e12eb30cdb309ae35bf9a7 Signed-off-by: Arnaud Morin --- mistral_lib/utils/__init__.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mistral_lib/utils/__init__.py b/mistral_lib/utils/__init__.py index 52d9913..a6f011f 100644 --- a/mistral_lib/utils/__init__.py +++ b/mistral_lib/utils/__init__.py @@ -331,11 +331,7 @@ def random_sleep(limit=1): :param limit: Float number of seconds that a sleep period must not exceed. """ - seconds = random.Random().randint(0, limit * 1000) * 0.001 - - print("Sleep: %s sec..." % seconds) - time.sleep(seconds)