Skip to content

Commit b6fb899

Browse files
committed
Merge #17699: Make env data logging optional
0ccad08 Make env data logging optional (Pieter Wuille) Pull request description: The dynamic env feeding logging is a bit chatty, make it dependent on `-debug=rand`. ACKs for top commit: practicalswift: ACK 0ccad08 -- less noise is good and diff looks correct laanwj: ACK 0ccad08 promag: ACK 0ccad08. jonatack: ACK 0ccad08, was considering to propose this. Tree-SHA512: 01d7f9ac134852c2c0d5f66f96ee4395f0ff7a60573e648f3d01054073624042148c8e8b9f69a29c9a41c296e1f4be77c2015a642ee4113a2fd8779b62aa137d
2 parents bb03765 + 0ccad08 commit b6fb899

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/random.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ static void SeedPeriodic(CSHA512& hasher, RNGState& rng) noexcept
517517
// Dynamic environment data (performance monitoring, ...)
518518
auto old_size = hasher.Size();
519519
RandAddDynamicEnv(hasher);
520-
LogPrintf("Feeding %i bytes of dynamic environment data into RNG\n", hasher.Size() - old_size);
520+
LogPrint(BCLog::RAND, "Feeding %i bytes of dynamic environment data into RNG\n", hasher.Size() - old_size);
521521

522522
// Strengthen for 10 ms
523523
SeedStrengthen(hasher, rng, 10000);
@@ -537,7 +537,7 @@ static void SeedStartup(CSHA512& hasher, RNGState& rng) noexcept
537537

538538
// Static environment data
539539
RandAddStaticEnv(hasher);
540-
LogPrintf("Feeding %i bytes of environment data into RNG\n", hasher.Size() - old_size);
540+
LogPrint(BCLog::RAND, "Feeding %i bytes of environment data into RNG\n", hasher.Size() - old_size);
541541

542542
// Strengthen for 100 ms
543543
SeedStrengthen(hasher, rng, 100000);

0 commit comments

Comments
 (0)