Only log time to write coins cache to disk if bench debug enabled #21475

pull rebroad wants to merge 1 commits into bitcoin:master from rebroad:LogCoinsCacheDurationIfBenchDebug changing 2 files +4 −2
  1. rebroad commented at 9:56 AM on March 19, 2021: contributor

    Minor debugging change to only log this if bench debugging is enabled.

  2. DrahtBot added the label Validation on Mar 19, 2021
  3. fanquake commented at 11:02 AM on March 19, 2021: member

    ~0. What is the motivation? This is generally useful information to have. You've also changed the file permissions.

  4. practicalswift commented at 2:41 PM on March 19, 2021: contributor

    Concept ACK on increasing signal-to-noise for our dear non-developer end-users by making debug style benchmarking output opt-in via -debug. The file permission change seems like a mistake though? :)

  5. Only log time to write coins cache to disk if bench debug enabled 9594252905
  6. rebroad force-pushed on Mar 19, 2021
  7. rebroad commented at 7:56 PM on March 19, 2021: contributor

    @fanquake @practicalswift file permissions fixed - I'll keep an eye out for that in future, thanks.

  8. practicalswift commented at 8:45 PM on March 19, 2021: contributor

    cr ACK 95942529053554bcdc8c8937356c41a4b78c55d5: patch looks correct

  9. jamesob commented at 10:16 PM on March 19, 2021: member

    Why? This is useful information we use for bitcoinperf, and don't necessarily want to enable more severe debugging.

  10. fanquake commented at 12:36 AM on March 20, 2021: member

    You still haven't provided any motivation, this would likely just be a detriment to existing tools, and as mentioned above, this information is useful to have when not benchmarking/debugging.

  11. fanquake closed this on Mar 20, 2021

  12. practicalswift commented at 9:55 AM on March 20, 2021: contributor

    At least let him make his case before closing.

    Consider re-opening.

  13. rebroad commented at 2:03 PM on May 7, 2021: contributor

    @fanquake The motivation is to make logging optional, as it already the case with most of the logging. I don't always want this logged, and so I would like it to be optional.

  14. DrahtBot locked this on Aug 16, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 18:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me