Simple, minimal change to improve logging by including the elapsed time in the “completed” log message even when msg_on_completion
is set to true. Motivation is to contribute, and improve Bitcoin Core user experience & Bitcoin Core developer experience with a simple log modification.
Current log outputs:
0LoadBlockIndex completed
After modification log output:
0LoadBlockIndex: LoadBlockIndex completed (452.87ms)
Current state doesn’t include how long the operation took. Which can force developers to either Parse “started” and “completed” lines separately Or add an intermediate log themselves to capture the duration.