]> git.bitcoin.ninja Git - rust-lightning/commit
Dont output logs when benchmarking 2024-08-fix-bench-logging
authorMatt Corallo <git@bluematt.me>
Fri, 30 Aug 2024 17:38:37 +0000 (17:38 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 30 Aug 2024 18:42:04 +0000 (18:42 +0000)
commitac4815abb62458e15962120783de9d879f4c41d7
treec6f0acdf2442198a3c7bc8c89a70c47d689b7a5c
parentcdcab1ce1bb164f21222b7e038aa52c08025af30
Dont output logs when benchmarking

In 11ab302087622b546d116fc9679f601667d18c4d we accidentally removed
the `not(ldk_bench)` bound before outputting logs to stderr, which
we restore here. Instead of simply ignoring logs in benchmarks,
which we did previously, we instead format logs (in a way that LLVM
will not optimize out).
lightning/src/util/test_utils.rs