mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-19 21:31:33 +02:00
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.
This commit is contained in:
parent
94070029fb
commit
4d84eaec82
@ -279,10 +279,10 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
||||
if seed is None:
|
||||
seed = random.randrange(sys.maxsize)
|
||||
else:
|
||||
self.log.debug("User supplied random seed {}".format(seed))
|
||||
self.log.info("User supplied random seed {}".format(seed))
|
||||
|
||||
random.seed(seed)
|
||||
self.log.debug("PRNG seed is: {}".format(seed))
|
||||
self.log.info("PRNG seed is: {}".format(seed))
|
||||
|
||||
self.log.debug('Setting up network thread')
|
||||
self.network_thread = NetworkThread()
|
||||
|
Loading…
x
Reference in New Issue
Block a user