Skip to content

Commit 4d84eae

Browse files
Raise PRNG seed log to INFO.
Some build infrastructure, such as Nix, will delete failed builds by default, keeping only the log of the failed build. For flaky tests, it would be very helpful to have the PRNG seed in the default log in order to redo the failed test. By simply raising the PRNG seed logging to INFO, we can, by default, record the seed in the log of every build.
1 parent 9407002 commit 4d84eae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,10 @@ def setup(self):
279279
if seed is None:
280280
seed = random.randrange(sys.maxsize)
281281
else:
282-
self.log.debug("User supplied random seed {}".format(seed))
282+
self.log.info("User supplied random seed {}".format(seed))
283283

284284
random.seed(seed)
285-
self.log.debug("PRNG seed is: {}".format(seed))
285+
self.log.info("PRNG seed is: {}".format(seed))
286286

287287
self.log.debug('Setting up network thread')
288288
self.network_thread = NetworkThread()

0 commit comments

Comments
 (0)