From 0624f4a578eb7c102bd4b3ce7f25e35f27b52a60 Mon Sep 17 00:00:00 2001 From: Xavier Bouthillier Date: Thu, 31 Mar 2022 20:19:42 -0400 Subject: [PATCH] Reduce verbosity of the Runner Otherwise we get literally flooded by debug logs while trials are executing. --- src/orion/client/runner.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/orion/client/runner.py b/src/orion/client/runner.py index 5eb1747b3..9e64e47e2 100644 --- a/src/orion/client/runner.py +++ b/src/orion/client/runner.py @@ -321,7 +321,8 @@ def scatter(self, new_trials): new_futures.append(future) self.futures.extend(new_futures) - log.debug("Scheduled new trials") + if new_futures: + log.debug("Scheduled new trials") return len(new_futures) def gather(self): @@ -331,7 +332,8 @@ def gather(self): ) to_be_raised = None - log.debug(f"Gathered new results {len(results)}") + if results: + log.debug(f"Gathered new results {len(results)}") # register the results # NOTE: For Ptera instrumentation trials = 0 # pylint:disable=unused-variable